Page 1 of 1

PDF to JPG quality problem

Posted: 2010-02-28T14:16:34-07:00
by pr0fess0r
Hi Guys
I'm trying to convert a PDF (a magazine) into a JPG of suitable resolution to be viewed on an iPhone.
Using this command on the Mac:

convert magazine.pdf -resize 480x -units PixelsPerInch -density 150x150 -set colorspace CMYK -colorspace RGB magazine.jpg

produces a jpg, but the quality isn't really good enough for what I need, even if I use the quality setting set to 100%, or up the dpi to 300*300.

But if I load the PDF into photoshop and Save for Web, I get a very high quality JPG.

So my question is, can I get a high quality JPG from a PDF using convert? Is it just a matter of parameters? Or would I have to use another tool to achieve Photoshop-like quality?
I'm going to be using the tool on a Linux server as part of a scheduled job so it needs to be non-interactive

Any advice appreciated :)

Cheers

Re: PDF to JPG quality problem

Posted: 2010-02-28T14:20:10-07:00
by Bonzo
Try moving the density:

Code: Select all

convert -density 300x300 magazine.pdf -resize 480x -units PixelsPerInch -set colorspace CMYK -colorspace RGB magazine.jpg 

Re: PDF to JPG quality problem

Posted: 2010-02-28T14:53:38-07:00
by pr0fess0r
That did it, wow. Cheers