gm.exe 转换:此图像格式没有解码委托 (input.pdf) [英] gm.exe convert: No decode delegate for this image format (input.pdf)

查看:48
本文介绍了gm.exe 转换:此图像格式没有解码委托 (input.pdf)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

同时尝试在 windows server 中使用图形魔术版本 1.3.36

While trying to use graphic magic version 1.3.36 in windows server

magick.exe -density 168x168 -quality 76 -compress JPEG "input.pdf" "output.png"

在 GM 中,我还安装了 GhostScript 并使用了以下内容:

In GM I also installed GhostScript and used the following:

gm.exe convert "input.pdf" -density 168X168 -quality 76 -compress JPEG "output.jpeg"

得到错误 gm.exe convert: No decode delegate for this image format (input.pdf)

有什么想法我哪里出错了吗?

Any ideas where I am going wrong?

推荐答案

gm.exe convert: No decode delegate for this image format (input.pdf)

这通常意味着 Imagemagick 无法找到 Ghostscript.添加 GhostScript 二进制文件 - gswin64c.exe"应该管用.但是,另一种方法可能是修改 delegates.mgk 文件以获得 PSDelegate 的二进制文件.

This generally means Imagemagick is not able to find Ghostscript. Adding GhostScript Binaries- "gswin64c.exe" should work. However, another way could be to modify the delegates.mgk file to have the binary for PSDelegate.

Delegates.mgk 条目在默认情况下看起来有点像这样-

The Delegates.mgk entry looks somewhat like this by default-

注意命令中的 @PSDelegate@ 环境变量,只需找到并将所有 @PSDelegate@ 替换为路径 gswin64c.

Note the @PSDelegate@ env variable in the command, Just find and replace all the @PSDelegate@ with the path gswin64c.

注意:Ghostscript bin 目录应该存在于系统路径中才能工作.瞧!

Note: Ghostscript bin directory should exist inside the system path for this to work. Voila!

这篇关于gm.exe 转换:此图像格式没有解码委托 (input.pdf)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆