Page 1 of 1

Converting PDF files

Posted: 2009-12-16T13:31:01-07:00
by michaelmuller
I am having trouble getting vector-based PDF files to convert to PNG without horrible aliasing going on when setting a transparency color. I can provide examples if needed.

-fuzz 10% -transparent white -resize 200

Anyone have any switch advice?

Mik

Re: Converting PDF files

Posted: 2009-12-16T13:59:50-07:00
by fmw42
if your pdf is cmyk, then

convert -colorspace rgb image.pdf .... result.png

To get higher quality, do supersampling by reading in the pdf at higher resolution, then resizing afterwards, e.g.

convert -density 288 image.pdf -resize 25% ... result.png

density 288 = 4*72 dpi, so you need to resize by 1/4=25% to compensate back again.