[magick-users] RE: PDF to PNG with transparency

Fred Weinhaus fmw at alink.net
Fri Nov 30 21:50:53 PST 2007


If your background color is pure white (or pure some color), then try

convert image.pdf -transparent white image.png

If it is not a solid color then try

convert image.pdf -fuzz $fuzzthresh% -transparent white image.png

Check the docs for -transparent and -fuzz

Also see

http://www.imagemagick.org/Usage/color/#floodfill
http://www.imagemagick.org/Usage/color/




>I would like to treat the white background of a PDF page as transparent during
>the PDF to PNG conversion.
>
>Is this possible ?


More information about the Magick-users mailing list