Page 1 of 1

Problem to convert pdf to jpg

Posted: 2011-07-08T12:42:41-07:00
by groguilel
Hi,

I'm using CentOS on my linux server and I would like to be able to convert PDF to JPG with PHP. When I do a simple "convert test.pdf test.jpg", I have the following errors :

convert: no decode delegate for this image format `/tmp/magick-VOaXMziQ-00000001' @ error/constitute.c/ReadImage/532.
convert: Postscript delegate failed `test.pdf': @ error/pdf.c/ReadPDFImage/663.
convert: missing an image filename `test.jpg' @ error/convert.c/ConvertImageCommand/3015.

For your information, I installed :
ImageMagick-6.7.0-10
ghostscript-9.02
ghostscript-fonts

When I do a "convert -list configure" this is what I have in the delegates :

> DELEGATES bzlib freetype gs jpeg lcms tiff x11 zlib

as you can see, Ghostscript (gs) is properly taken in consideration but I still can't convert a PDF to JPG knowing that all the other image magick commands work. Do you have any clues for me ?

Thank you !