I am trying to convert PDFs to JPGs on a LAMP (Linux, Apache, MySQL, PHP) server using this command:
Code: Select all
exec("convert test.pdf[0] -density 100 -sample 200x200 test.jpg");

Should look like this:

The only difference between the results you see above is that I exported the first as High Quality Print and Press Quality from InDesign CS3 and the second one is exported as Smallest File Size from the same InDesign.
Obviously, they are of different file sizes but that doesn't seem to be the cause.
I believe it is caused by the first two being CMYK and the working one being RGB.
I do not know which version of ImageMagick is installed (or how to find out).
Please help.

---
Versions:
I have figured out how to determine the versions...
ImageMagick Convert ("convert -version"):
Code: Select all
ImageMagick 6.2.8 04/17/08 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC
Code: Select all
ESP Ghostscript 8.15.2 (2006-04-19)
Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved.