Simple pdf to jpg conversion fails

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
Joren
Posts: 1
Joined: 2011-04-01T02:24:26-07:00
Authentication code: 8675308

Simple pdf to jpg conversion fails

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Simple pdf to jpg conversion fails

Post by fmw42 »

check if IM is seeing ghostscript

convert -list configure

look at line starting with DELEGATES
pieland
Posts: 2
Joined: 2011-04-01T06:48:29-07:00
Authentication code: 8675308

Re: Simple pdf to jpg conversion fails

Post 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 ?
Post Reply