在Windows中,当我运行convert.exe source.tif -compress Group4 output.pdf
时,没有错误并且输出已成功创建。但是,当我使用AutoHotkey时出现错误:
Error: 0x80041771 -
Source: ImageMagickObject.MagickImage.1
Description: convert: 420: no decode delegate for this image format `' @ error/constitute.c/ReadImage/508:
convert: 410: no images defined `' @ error/convert.c/ConvertImageCommand/3235:
我的代码:
IM := ComObjCreate("ImageMagickObject.MagickImage.1")
IM.convert(22_2R.tif,-compress Group4,niach.pdf)