Page 1 of 1

error: convert: Postscript delegate failed

Posted: 2008-12-17T07:03:23-07:00
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.)

:)

Re: error: convert: Postscript delegate failed

Posted: 2008-12-17T07:11:50-07:00
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.

Re: error: convert: Postscript delegate failed

Posted: 2008-12-17T08:09:01-07:00
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.