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