Failed to Execute Command, Delegate Error?
Posted: 2015-09-08T06:20:30-07:00
Hi folks, I have been using ImageMagick for several years but am really a novice with it. This recent issue has be just flummoxed. I am attempting to take an eps figure and convert it to a png using convert. The eps is vectorized, which I use for publishing, the png is useful for presentations.
I am using Windows 7, command-line use only. ImageMagick 6.9.2-Q16, Ghostscript 9.16
When I open a command window and type:
I get NO error. However, If I try the following command:
I receive the following error:
What caught my attention was where it was pointing to Ghostscript, it was additionally the incorrect version I have on the PC (I am using 9.16, I have had 8.61 installed at one time but since upgraded). So my first course of action was to uninstall and reinstall Ghostscript, no change. Then, I did the same with ImageMagick, no change. I tried the 32 bit versions of the software as well with no luck.
It seems like ImageMagick is looking for Ghostscript in the wrong location, I cannot figure out how to change it. I looked through the 'delegate.xml' and played with changing the PSDelegate terms to the absolute path but did not see any change with that. Admittedly, I am not sure what I am doing.
Any help is appreciated, thank you!
Craig
I am using Windows 7, command-line use only. ImageMagick 6.9.2-Q16, Ghostscript 9.16
When I open a command window and type:
Code: Select all
convert logo: logo.gif
Code: Select all
convert "sensor_schematic.eps" "sensor_schematic.png"
Code: Select all
convert.exe: FailedToExecuteCommand `"C:/Users/username/AppData/Local/ATT
Connect/Participant/GHostScript/gs/gs8.61/bin/gswin64c.exe" -q -dQUIET -dSAFER -
dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=
2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g522x45
3 "-sOutputFile=C:/Users/username/AppData/Local/Temp/magick-1920P6UnzrZEeyyC
%d" "-fC:/Users/username/AppData/Local/Temp/magick-1920jSMXaNgcAD-d" "-fC:/Us
ers/username/AppData/Local/Temp/magick-1920Lh_16i7WNJh3"' (The system cannot
find the file specified.
) @ error/delegate.c/ExternalDelegateCommand/480.
convert.exe: FailedToExecuteCommand `"C:/Users/username/AppData/Local/ATT
Connect/Participant/GHostScript/gs/gs8.61/bin/gswin64c.exe" -q -dQUIET -dSAFER -
dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=
2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g522x45
3 "-sOutputFile=C:/Users/username/AppData/Local/Temp/magick-1920P6UnzrZEeyyC
%d" "-fC:/Users/username/AppData/Local/Temp/magick-1920jSMXaNgcAD-d" "-fC:/Us
ers/username/AppData/Local/Temp/magick-1920Lh_16i7WNJh3" -c showpage' (The sy
stem cannot find the file specified.
) @ error/delegate.c/ExternalDelegateCommand/480.
convert.exe: Postscript delegate failed `The system cannot find the file specifi
ed.
' @ error/ps.c/ReadPSImage/953.
convert.exe: no images defined `sensor_schematic.png' @ error/convert.c/ConvertI
mageCommand/3230.
It seems like ImageMagick is looking for Ghostscript in the wrong location, I cannot figure out how to change it. I looked through the 'delegate.xml' and played with changing the PSDelegate terms to the absolute path but did not see any change with that. Admittedly, I am not sure what I am doing.
Any help is appreciated, thank you!
Craig