Page 1 of 1

Quality PDF to PNG

Posted: 2006-10-11T10:23:05-07:00
by mtdimich
I'm using IM to convert PDF's to PNG's. I was formerly using GhostScript to do this, but because of a requirement/bug in MSSQL , I need a type 3 PNG. When I do this conversion, the smaller text gets pretty blurry. Are there some parameters where I can optimize this so I get better quality and can read the text after it has been converted? I'm not too familiar with Antialiasing but I tried using that but I don't know enough to use it correctly I fear. Here are some of the commands I've used. Q16 by the way.

convert testpdf.pdf -colors 255 -antialias Image.PNG
convert testpdf.pdf -antialias Image.PNG
convert testpdf.pdf +antialias Image.PNG

Thanks in advance!

Posted: 2006-10-11T11:38:57-07:00
by magick
Try this command to generate reasonable looking PDF renderings:
  • convert -density 400x400 testpdf.pdf -resize 25% image.png

Posted: 2006-10-25T06:52:48-07:00
by mtdimich
Do you need to convert to a TIFF? I used a PNG and the quality is good enough to read I would say about size 6 font.

Posted: 2006-10-30T10:05:03-07:00
by mtdimich
magick wrote: Try this command to generate reasonable looking PDF renderings:
  • convert -density 400x400 testpdf.pdf -resize 25% image.png



This actually rendered a slightly blurry pdf. I get better results when I do not resize the pdf. What can antialiasing do for the quality of text in this png?

I'm guessing there is a pretty direct correlation between size of the png and quality. When I increase the dpi, the file obviously gets better quality, but the size of the file increases quickly. Any tricks to keeping the size of the file down but being able have the smaller text in the pdf that I'm trying to convert to a png readable and crisp?

Thanks!
Matt

Posted: 2006-10-30T11:08:36-07:00
by magick
You can increase sharpness with the -support option. Otherwise to get sharper text, prodvide commercial quality fonts to Ghostscript.