Page 1 of 1

IM does not list ghostscript as a delegate

Posted: 2011-12-13T07:33:32-07:00
by goebbe
I want to use IM 6.7.4.0 Q16 (32-bit) together with Ghostscript (32-bit) in order to convert .pdf images on my Win7 (64-bit) computer.

First thing I tried:
convert -define pdf:use-cropbox=true -depth 8 -flatten "pdf:02b_km_survival.pdf" "ppm:test.ppm"
Error message:
C:\Users\goebbe\Documents\Papier_ABO_Azubis_21\appendix>convert -define pdf:use-cropbox=true -depth 8 -flatten "pdf:02a_support_sample0.pdf" "ppm:test.ppm"
Unrecoverable error: rangecheck in .putdevicepropsconvert.exe: %s': %s "C:/Program Files (x86)/gs/gs9.04/bin/gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 dGridFitTT=2 -sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g0x0 dUseCropBox "-sOutputFile=C:/Users/goebbe/AppData/Local/Temp/magick-AH0KIdZo-15145648" "-fC:/Users/goebbe/AppData/Local/Temp/magick-8fjg8i8d" "-fC:/Users/goebbe/AppData/Local/Temp/magick-46OCSCiE" @ error/pdf.c/InvokePDFDelegate/199.convert.exe: Postscript delegate failed 02a_support_sample0.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/665.convert.exe: missing an image filename `ppm:test.ppm' @ error/convert.c/ConvertImageCommand/3016.

The problem seems to be that ghostscript is not recognised properly:
C:\Users\goebbe>convert -list configure

Path: [built-in]

Name Value
--------------------------------------------------------------------------
NAME ImageMagick

Path: C:\Program Files (x86)\ImageMagick-6.7.4-Q16\configure.xml

Name Value
--------------------------------------------------------------------------
CC vs10
COPYRIGHT Copyright (C) 1999-2011 ImageMagick Studio LLC
DELEGATES bzlib freetype jpeg jp2 lcms png tiff x11 xml wmf zlib
FEATURES OpenMP
HOST Windows
LIB_VERSION 0x674
LIB_VERSION_NUMBER 6,7,4,0
NAME ImageMagick
RELEASE_DATE 2011-12-15
VERSION 6.7.4
WEBSITE http://www.imagemagick.org

I tried to de- and reinstall different versions of ghostscript (8.71, 9.02, 9.04) and tried the static and dynamic binaries of IM.
However IM never picked ghostscript up in the DELEGATES list. Any idea what the problem could be? Any workaround/fix?

Thanks a lot for providing IM.

Re: IM does not list ghostscript as a delegate

Posted: 2011-12-15T05:52:18-07:00
by goebbe
This post is likely to be related (same issue) - and provides a description with a workaround:
viewtopic.php?f=3&t=15056

Re: IM does not list ghostscript as a delegate

Posted: 2011-12-15T07:26:40-07:00
by goebbe
Hmm - after all this seems to be is a different issue then discussed in the link above.

Here are my registry entries, after intalling GPL Ghostscript 9.04 32-bit on my Win7 (64-bit) computer:

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\GPL Ghostscript]

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\GPL Ghostscript\9.04]
"GS_DLL"="C:\\Program Files (x86)\\gs\\gs9.04\\bin\\gsdll32.dll"
"GS_LIB"="C:\\Program Files (x86)\\gs\\gs9.04\\bin;C:\\Program Files (x86)\\gs\\gs9.04\\lib;C:\\Program Files (x86)\\gs\\gs9.04\\fonts"

At first sight, these entries seem to be at the right place (Wow6432Node) and point to the folderd in which the libs and dlls are installed.
Any ideas why IM cannot find ghostscript (cannot delegate to ghostscript)?