Page 1 of 1
Ghostscript not recognized
Posted: 2012-02-24T17:27:57-07:00
by JDTornado
Hi Everyone,
I have been trying to figure this out for days and I NEED it to work. Here is my setup:
Windows Server 2008 R2 Standard
GS 9.05
IM 6.7.5
I installed GS first, followed by IM. When I do a convert -list config, gs does not show up in the delegates and I get the following errors when trying convert test.pdf[0] test.jpg:
"Postscript delegate failed 'test.pdf': No such file or directory"
and
"missing an image filename 'test.jpg'"
I have another server with the exact same setup, and it works just fine, even though gs doesn't show up in the delegates when I do a convert -list config. I installed both from binaries, just used the installers for them. Can anyone give me some advice because I am about to bang my head on my desk just to make the pain of frustration feel less prominent?
Re: Ghostscript not recognized
Posted: 2012-02-24T17:37:11-07:00
by fmw42
GS is a pain to install esp on Windows. So it probably did not get properly installed. Search the archives for a relatively recent post where the solution for Windows was discussed by Wolfgang Hugemann.
Re: Ghostscript not recognized
Posted: 2012-02-24T18:07:02-07:00
by fmw42
I don't know if this is relevant but look at
viewtopic.php?f=1&t=20201
Re: Ghostscript not recognized
Posted: 2012-02-24T18:29:38-07:00
by JDTornado
I have looked through all the threads he posted on, as well as the one that was recommended, and I haven't found anything that I haven't already tried.. Nothing is working. Still frustrated lol. Any help would be very much appreciated. Also, here is the exact message I'm getting back from command prompt when I try to convert:
Code: Select all
c:\inetpub\admin.mydomain.com\dirBrowsing\imgTemp>convert test.pdf[0] test.
jpg
convert.exe: `%s' (%d) "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOP
ROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=
pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dFirstPage=1 -dLast
Page=1 "-sOutputFile=C:/Users/jobur9/AppData/Local/Temp/2/magick-yic4j_zo--00000
01" "-fC:/Users/jobur9/AppData/Local/Temp/2/magick-d0PIVcfk" "-fC:/Users/jobur9/
AppData/Local/Temp/2/magick-NJnbmg5X" @ error/utility.c/SystemCommand/1896.
convert.exe: Postscript delegate failed `test.pdf': No such file or directory @
error/pdf.c/ReadPDFImage/668.
convert.exe: missing an image filename `test.jpg' @ error/convert.c/ConvertImage
Command/3016.
When I run identify -list delegate I get:
Code: Select all
Path: C:\Program Files (x86)\ImageMagick-6.7.5-Q16\delegates.xml
Delegate Command
-------------------------------------------------------------------------------
bmp<= win "cmd.exe /C %%SystemRoot%/System32/rundll32.exe "%%ProgramFiles%/Windows Photo Viewer/PhotoViewer.dll", ImageView_Fullscreen file:///%i"
bmp<= show "cmd.exe /C %%SystemRoot%/System32/rundll32.exe "%%ProgramFiles%/Windows Photo Viewer/PhotoViewer.dll", ImageView_Fullscreen file:///%i"
bmp<= launch "cmd.exe /C %%SystemRoot%/System32/rundll32.exe "%%ProgramFiles%/Windows Photo Viewer/PhotoViewer.dll", ImageView_Fullscreen file:///%i"
browse => "cmd /C start http://www.imagemagick.org/"
cgm => "ralcgm -d ps "%i." "%o." "%u."
compress => "|uncompress -c "%i"
dot => "dot -Tps "%i" -o "%o"
dvi => "dvips -q -o "%o" "%i"
edit => "notepad "%o"
emfplus => "emfplus -format png "%i" "%o"
eps<=>ps "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=pswrite "-sOutputFile=%o" -- "%i"
eps<=>pdf "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -sDEVICE=pdfwrite "-sOutputFile=%o" -- "%i"
fig => "/usr/X11R6/bin/fig2dev -L ps "%i" "%o"
gplt => "/bin/echo "set size 1.25,0.62 set terminal postscript portrait color solid; set output "%o"; load "%i"" > "%u";gnuplot %u"
hpg => "hp2xx -q -m eps -f "%o" "%i"
hpgl => "hp2xx -q -m eps -f "%o" "%i"
htm => "html2ps -U -o "%o" "%i"
html => "html2ps -U -o "%o" "%i"
ilbm => "ilbmtoppm "%i" > "%o"
man => "groff -man -Tps "%i" > "%o"
miff<= compress "|compress -c > "%o"
mpeg:decode => "ffmpeg.exe" -v -1 -vframes %S -i "%i" -vcodec pam -an -f rawvideo -y "%u.pam"
pcl:cmyk => "pcl6.exe" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT-dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pamcmyk32" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s"
pcl:color => "pcl6.exe" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT-dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=ppmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s"
pcl:mono => "pcl6.exe" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT-dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pbmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s"
pdf<=>ps "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=pswrite "-sOutputFile=%o" -- "%i"
pdf<=>eps "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -sDEVICE=epswrite "-sOutputFile=%o" -- "%i"
pgp => "pgpv -fq "%i"
pnm<= ilbm "ppmtoilbm -24if "%i" > "%o"
pov => "povray "+i"%i"" -D0 +o"%o" +fn%q +w%w +h%h +a -q9 -kfi"%s" -kff"%n" convert -concatenate %o*.png "%o"
ps<=>pdf "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=pdfwrite "-sOutputFile=%o" -- "%i"
ps<=>eps "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=epswrite "-sOutputFile=%o" -- "%i"
ps:alpha => "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s"
ps:cmyk => "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pamcmyk32" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s
" "-f%s" "-f%s"
ps:color => "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pnmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s"
ps:mono => "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pnmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s"
rgba<= rle "pnmtorle -o "%o" -v "%i"
scan => "scanimage -d "%i" > "%o"
shtml => "html2ps -U -o "%o" "%i"
sid => "mrsidgeodecode -if sid -i "%i" -of tif -o "%o" > "%u"
txt<=>ps "enscript -o "%o" "%i"
xcf => "xcftopnm "%i" > "%o"
xps:cmyk => "gxps.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pamcmyk32" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s"
xps:color => "gxps.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pnmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s"
xps:mono => "gxps.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pbmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s"
I see gswin32c.exe show up in there plenty of times, but I don't get gs when I do convert -list config and look at the delegates. I also notice that it's not the full path to the file either. Is there a way to modify any of that, becuase in the delgates.xml file there is a placeholder in every spot that gswin32c.exe is listed. Help would be appreciated very much. Thanks in advance!
Re: Ghostscript not recognized
Posted: 2012-02-24T18:35:08-07:00
by fmw42
Sorry I am not a Windows user so cannot help further. Hopefully some kind Windows user will see your post and reply.
By the way, did you install IM from source or binary?
Re: Ghostscript not recognized
Posted: 2012-02-24T19:00:03-07:00
by JDTornado
From binary
Re: Ghostscript not recognized
Posted: 2012-02-27T10:15:27-07:00
by JDTornado
Update:
I tried installing the latest versions of IM and GS with the same effect, then reverted back to the versions I have working on my other server. Any thoughts?
Re: Ghostscript not recognized
Posted: 2012-02-27T12:44:58-07:00
by JDTornado
Got it working! I installed the 32bit version of ghostscript and it seemed to have done the trick. I don't know why it works with the 64bit version on my other server, but I'm not gonna look a gift horse in the mouth. Thanks for the help.