Convert PDF to PNG using ImageMagick

Posted by StackOverflowNewbie on Stack Overflow See other posts from Stack Overflow or by StackOverflowNewbie
Published on 2010-05-19T22:30:11Z Indexed on 2010/05/19 22:30 UTC
Read the original article Hit count: 357

Filed under:
|
|

using ImageMagick, what command should i use to convert a PDF to PNG? I need highest quality, smallest file size. this is what I have so far (very slow by the way):

convert -density 300 -depth 8 -quality 85 a.pdf a.png

Looking at what Gmail does when a user "view" a PDF, the quality is awesome and the file size very minimal. The DPI is just 96 (I have to set a density of 300 to get anything decent). Anyone know how GMail does it? Thanks.

© Stack Overflow or respective owner

Related posts about imagemagick

Related posts about pdf