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

时间:2012-12-14 21:42:23

标签: 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

1 个答案:

答案 0 :(得分:4)

在常规Unix shell中,单引号将由shell解析。我不确定Windows shell是否会这样做。这有用吗?

convert dragon.gif[64x64] read_dragon.gif

还是这个?

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