windows - 为什么文档中的这个简单的 imageMagick 命令不起作用?

标签 windows command-line imagemagick

C:\Program Files\ImageMagick-6.8.0-Q16>convert dragon.gif'[64x64]' read_dragon.gif
convert.exe: unable to open image `dragon.gif'[64x64]'': No such file or directo
ry @ error/blob.c/OpenBlob/2638.
convert.exe: unable to open module file `C:\Program Files\ImageMagick-6.8.0-Q16\
modules\coders\IM_MOD_RL_GIF'[64X64]'_.dll': No such file or directory @ warning
/module.c/GetMagickModulePath/683.
convert.exe: no decode delegate for this image format `dragon.gif'[64x64]'' @ er
ror/constitute.c/ReadImage/550.
convert.exe: no images defined `read_dragon.gif' @ error/convert.c/ConvertImageC
ommand/3078.

但是以下操作没有问题:

convert dragon.gif dragon.png

最佳答案

在常规 Unix shell 中,单引号将被 shell 解析掉。我不确定 Windows shell 是否会执行此操作。这有效吗?

convert dragon.gif[64x64] read_dragon.gif

还是这个?

convert "dragon.gif[64x64]" read_dragon.gif

关于windows - 为什么文档中的这个简单的 imageMagick 命令不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13886678/

相关文章:

c++ - 关于windows iocp的一个问题

c++ - DirectX11 CreateSharedHandle - 这是跨设备的吗?

windows - Cygwin 保存包选择以供以后重新安装

windows - LibreOffice exe 文件在 windows 中将 word 转换为 pdf

r - 导入 png 文件并在 R 中转换为动画(.mp4)

ruby-on-rails - Ruby 动态增加文件大小以进行测试

工作站锁定时,C# 窗体不会在 Microsoft Windows 上最小化

windows - 使用 Windows 批处理命令配置 Jenkins CI 作业和 FreeFileSync 批处理

linux - 如何在保留您键入的文字的同时打印新消息?

linux - rsync 和(后)处理同步文件