imagemagick无法识别Ghostscript的新路径

时间:2017-11-30 16:03:59

标签: window imagemagick ghostscript

我正在尝试使用imagemagick将一些PDF转换为jpegs。我正在努力赢得10,64的python 3.62 - 64位和魔杖0.4.4。我已经能够使用ImageMagick-6.9.9-Q16-HDRI。我已将所有这些设置在E USB闪存盘上。我已将Path和MAGICK_HOME环境变量设置为

E:\ImageMagick-6.9.9-Q16-HDR;E:\gs\bin

最初我在E:/gs9.22安装了ghostscript 9.22 - 64,但我读了(PythonMagick can't find my pdf files)64位可能无法工作所以我删除了它并得到了ghostscript 9.22 - 32位,我安装了如上。

我跑了:

$ convert myfile.pdf test.jpg
convert.exe: FailedToExecuteCommand `"E:/gs9.22/bin/gswin64c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=png
alpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72"  "-sOutputFile=C:/Users/MYaCCount/AppData/Local/Temp/magick-9524p6yKrXNmpJc3%d" "-fC:/Users/MYaCCount/AppData/Local/Te
mp/magick-9524TRGHmKoW5SkX" "-fC:/Users/MYaCCount/AppData/Local/Temp/magick-9524pKGelk0Un3Bp"' (The system cannot find the file specified.
) @ error/delegate.c/ExternalDelegateCommand/459.
convert.exe: PDFDelegateFailed `The system cannot find the file specified.
' @ error/pdf.c/ReadPDFImage/809.
convert.exe: no images defined `test.jpg' @ error/convert.c/ConvertImageCommand/3258.

为什么系统要查找64位ghostscript路径(我删除了)?我关闭并重新打开了我的编辑器和环境变量编辑器。

1 个答案:

答案 0 :(得分:0)

我最终使用regedit实用程序手动浏览并删除了所有“ImageMagick”的痕迹。 Imagemagick中包含的卸载实用程序未删除所有内容。在此之后,我能够安装新版本。