Page 1 of 1

Postscript delegate failed (IM 6.7.3-10)

Posted: 2011-12-04T12:07:29-07:00
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

Re: Postscript delegate failed (IM 6.7.3-10)

Posted: 2011-12-04T13:18:16-07:00
by magick
Did you install Ghostscript? Its required by ImageMagick to interpret Postscript and PDF.

Re: Postscript delegate failed (IM 6.7.3-10)

Posted: 2011-12-06T10:50:17-07:00
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

Re: Postscript delegate failed (IM 6.7.3-10)

Posted: 2015-08-31T00:39:34-07:00
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 >_<

Re: Postscript delegate failed (IM 6.7.3-10)

Posted: 2015-08-31T01:17:39-07:00
by Metazeta
Supprimé