Page 1 of 1

Postscript delegate failed on x64

Posted: 2014-04-08T15:18:05-07:00
by jp2code
I have the x64 version of ImageMagick.

When we got the "Postscript delegate failed" error, I looked it up and found HERE that I needed GhostScript.

I went and got GhostScript (the x64 version), but it still fails.

Looking closely at the error message and following the directory structure, it appears that "convert.exe" is calling the 32-bit version of GhostScript.

Code: Select all

C:\MCDevStack\www\www.martinconnection.com\development\bin\imagemagick>convert.e
xe -density 150 -trim -colorspace cymk -resize 8192x8192 test_src.pdf test_full.
jpg
convert.exe: unrecognized image colorspace `cymk' @ error/convert.c/ConvertImage
Command/1022.

C:\MCDevStack\www\www.martinconnection.com\development\bin\imagemagick>convert.e
xe -density 150 -trim -colorspace cmyk -resize 8192x8192 test_src.pdf test_full.
jpg
convert.exe: `%s' (%d) "C:/Program Files/gs/gs9.14/bin/gswin32c.exe" -q -dQUIET
-dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dG
ridFitTT=2 "-sDEVICE=pamcmyk32" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r150x1
50" -dUseCIEColor  "-sOutputFile=C:\Users\jpool\AppData\Local\Temp\magick-1464lL
ZzemVQ1eHe-1" "-fC:\Users\jpool\AppData\Local\Temp\magick-14644dhk9y-03gF5" "-fC
:\Users\jpool\AppData\Local\Temp\magick-1464wGXd6N5VWCrX" @ error/utility.c/Syst
emCommand/2036.
convert.exe: Postscript delegate failed `test_src.pdf': No such file or director
y @ error/pdf.c/ReadPDFImage/713.
convert.exe: no images defined `test_full.jpg' @ error/convert.c/ConvertImageCom
mand/3150.

C:\MCDevStack\www\www.martinconnection.com\development\bin\imagemagick>
How do I configure ImageMagick to use the x64 version of GhostScript?

It would not do me any good to install the 32-bit version of GhostScript, because those files would be in a different directory.

Do I just rename gswin64c.exe to gswin32c.exe?

Re: Postscript delegate failed on x64

Posted: 2014-04-08T15:22:55-07:00
by jp2code
Sorry.

Using ImageMagick 6.8.8 Q16 (64-bit).

Re: Postscript delegate failed on x64

Posted: 2014-04-08T15:43:30-07:00
by fmw42
I am not a Windows expert, but I would expect there to be a 64-bit version of GS that you can install. You may have to reinstall IM afterwards.

But I will defer to the Windows experts on this one.

Re: Postscript delegate failed on x64

Posted: 2014-04-08T15:53:49-07:00
by dlemstra
Are you sure you are using the x64 version of ImageMagick? (convert -version) I fixed a bug yesterday that would cause a problem if you only install the 64-bit version of GhostScript and use the 32-bit version of ImageMagick.

Re: Postscript delegate failed on x64

Posted: 2014-04-08T17:01:07-07:00
by jp2code
dlemstra wrote:Are you sure you are using the x64 version of ImageMagick? (convert -version) I fixed a bug yesterday that would cause a problem if you only install the 64-bit version of GhostScript and use the 32-bit version of ImageMagick.
Apparently, I am.

However, the WAMP stack we are using currently targets the 32-bit version.

So, that solves my problem. Our WAMP stack needs to point to what is installed, not save a copy in a different folder.

Thanks, dlemstra!

This one is solved.