Postscript delegate failed (IM 6.7.3-10)

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
mongole
Posts: 1
Joined: 2011-12-04T09:43:33-07:00
Authentication code: 8675308

Postscript delegate failed (IM 6.7.3-10)

Post by mongole »

Hi,

I tried to convert a PDF into a PNG, but get following error. I tried it with an 6.4.0 version in cygwin, which worked without any problems.

What happened:

Code: Select all

C:\Users\andi\Desktop\PDF-nach-PNG\PDF-ORDNER>convert Karin.pdf Karin.png
convert.exe: `%s' (%d) "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -
dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g842x595  "-sOutputFile=C:/Users/andi/AppData/Local/Temp/magi
ck-av1ZTX4c--0000001" "-fC:/Users/andi/AppData/Local/Temp/magick-lXIJI3t5" "-fC:/Users/andi/AppData/Local/Temp/magick-7HGxGZPq" @ error/utility.c
/SystemCommand/1903.
convert.exe: Postscript delegate failed `Karin.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/665.
convert.exe: missing an image filename `Karin.png' @ error/convert.c/ConvertImageCommand/3016.

C:\Users\andi\Desktop\PDF-nach-PNG\PDF-ORDNER>
I used the ziped windows version. Just extracted it, and did not change anything.

Thanks and greets,
andi
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Postscript delegate failed (IM 6.7.3-10)

Post by magick »

Did you install Ghostscript? Its required by ImageMagick to interpret Postscript and PDF.
rogerdpack
Posts: 7
Joined: 2011-06-16T16:52:23-07:00
Authentication code: 8675308

Re: Postscript delegate failed (IM 6.7.3-10)

Post by rogerdpack »

Confirmed, it seems that "now" (didn't used to?) imagemagick requires you to install ghostscript.
So installing from here:
http://www.ghostscript.com/download/gsdnld.html

and now it works with ImageMagick-6.7.1-Q16 (both were 32 bit, dunno if that matters).
Thanks!
-r
Metazeta
Posts: 2
Joined: 2015-08-31T00:25:21-07:00
Authentication code: 1151

Re: Postscript delegate failed (IM 6.7.3-10)

Post by Metazeta »

Hi,
I have exactly the same error.
The thing is that I have to embed ImageMagick along with my Python script.
I have a portable version of Ghostscript in the same folder, I tried to mess with the Delegates.xml files to redirect to my ghostscript dir but it doesn't seem to work changing those two lines.

Edit : I can convert from image to pdf but not the opposite :shock:

Code: Select all

 
<delegate decode="pdf" encode="eps" mode="bi" command=""@PSDelegate@" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -sDEVICE=epswrite "-sOutputFile=%o" -- "%i""/>
<delegate decode="pdf" encode="ps" mode="bi" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=ps2write "-sOutputFile=%o" -- "%i""/>
is changed to :

Code: Select all

 
<delegate decode="pdf" encode="eps" mode="bi" command=""C:\documents\Python\gs9.16\bin\gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -sDEVICE=epswrite "-sOutputFile=%o" -- "%i""/>
<delegate decode="pdf" encode="ps" mode="bi" command=""C:\documents\Python\gs9.16\bin\gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=ps2write "-sOutputFile=%o" -- "%i""/>
Is my syntax correct ? and is it possible to put a relative path ? (If not I will try to change it through my Python Script >_<
Last edited by Metazeta on 2015-08-31T04:05:33-07:00, edited 1 time in total.
Metazeta
Posts: 2
Joined: 2015-08-31T00:25:21-07:00
Authentication code: 1151

Re: Postscript delegate failed (IM 6.7.3-10)

Post by Metazeta »

Supprimé
Post Reply