IM does not list ghostscript as a delegate
Posted: 2011-12-13T07:33:32-07:00
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.
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.