Page 1 of 1

Simple pdf to jpg conversion fails

Posted: 2011-04-01T02:36:57-07:00
by Joren
Hi all,

First of all, I have not that much experience with imagemagick, so maybe the answer to my question is pretty simple. Unfortunately I could not find a good answer on this forum jet and because I am on a tight deadline I hope somebody can help me out quickly.

I have a simple PDF document that has to be converted to a JPG file (or files, if it is a multipage PDF)
A few days ago I executed the following line through a php script and all went well:

Code: Select all

exec("convert test.pdf test.jpg 2>&1") ;
This was done with image magick version 6.2 I thought.
Yesterday image magick was updated to it's newest version, 6.6.9 and from that moment the script gives the following error:

Code: Select all

Array
(
    [0] => CRIT: rangecheck in .setuserparams
    [1] => Operand stack:
    [2] =>     --nostringval--  --nostringval--  --nostringval--
    [3] => convert: Postscript delegate failed `../../boeken/10/pdf/boekID-10.pdf':  @ error/pdf.c/ReadPDFImage/663.
    [4] => convert: missing an image filename `../../boeken/10/jpg/boekID-10-%d.jpeg' @ error/convert.c/ConvertImageCommand/3011.
)
Can anyone help me out where the problem might be?

Many thanks,

Joren

Re: Simple pdf to jpg conversion fails

Posted: 2011-04-01T10:07:31-07:00
by fmw42
check if IM is seeing ghostscript

convert -list configure

look at line starting with DELEGATES

Re: Simple pdf to jpg conversion fails

Posted: 2011-04-01T10:45:09-07:00
by pieland
I have Centos5.4 X64 and I uninstall version 6.2.8.0 and install the latest download - ImageMagick-6.6.9-1.x86_64.rpm. I am getting exactly the same results. I then uninstalled the latest version and reinstalled the old version using "yum install" and everything works again.

Any ideas ?