Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating an image with a transparent background in ImageMagick

Tags:

imagemagick

how can you make a new image with a transparent background?

convert -size 120x22 gfx/gen/tmp.png
like image 647
clarkk Avatar asked Feb 04 '11 15:02

clarkk


People also ask

How do I make an image background transparent in ImageMagick?

Invoke the -transparent option so that all white pixels, which are all pixels which have the the hexidecimal color #ffffff , become transparent.

What is transparency in PNG?

What is a Transparent Format? A transparent logo is a logo in PNG or vector format. They are easy to recognize as the background of the image is invisible unlike other formats like JPEG. Therefore, it is very easy to use a transparent logo to create various parts of your brand.

What is XC in ImageMagick?

Yes it is purely an alias for xc: which stood for "X window color", which came from the extreme early days of ImageMagick (long before my time).


1 Answers

Like this:

convert -size 122x22 xc:none gfx/gen/tmp.png
like image 158
aorcsik Avatar answered Nov 10 '22 02:11

aorcsik