PDF to JPG quality problem

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
pr0fess0r

PDF to JPG quality problem

Post 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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: PDF to JPG quality problem

Post 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 
pr0fess0r

Re: PDF to JPG quality problem

Post by pr0fess0r »

That did it, wow. Cheers
Post Reply