error: convert: Postscript delegate failed

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
h4ze

error: convert: Postscript delegate failed

Post by h4ze »

hallo,

i am working with imagemagick in case of converting pdf 2 jpeg. mostly it workes very well, but i have a file (correct pdf i think, i can open it with acrobat reader) the script dont work.

the following is the error:
**** Warning: File has insufficient data for an image.
GPL Ghostscript 8.54: Unrecoverable error, exit code 1
convert: Postscript delegate failed `/home/www/data/files/filename.pdf': No such file or directory.
convert: missing an image filename `/home/www/data/workspace/filename.jpg'.
i do it with the php-code:

Code: Select all

exec('convert /home/www/data/files/filename.pdf /home/www/data/workspace/filename.jpg');
is there something wrong?

(please excuse my engl.)

:)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: error: convert: Postscript delegate failed

Post by magick »

ImageMagick uses Ghostscript to render Postscript and PDF. Chances are Ghostscript does not like your PDF. Try it from the command line:
  • gs image.pdf
If it fails, the bug is in Ghostscript. You can try upgrading or filing a bug report with the Ghostscript maintainers.
h4ze

Re: error: convert: Postscript delegate failed

Post by h4ze »

thanks.

i tried this:

Code: Select all

exec('gs /home/www/data/files/filename.pdf');
before the convert. but it doesnt work.

what does gs do? is there another possibility you know?

thanks for the answer.
Post Reply