No decode delegate error in AHK while using ImageMagick

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
menteith
Posts: 51
Joined: 04 Feb 2016, 12:22

No decode delegate error in AHK while using ImageMagick

20 Jul 2016, 04:41

Hi all,

In Windows when I run

Code: Select all

convert.exe source.tif -compress Group4 output.pdf
there is no error and the output is created successfully. However, when I use AutoHotkey I get an error:

Code: Select all

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:

Here's my code:

Code: Select all

IM := ComObjCreate("ImageMagickObject.MagickImage.1") 
IM.convert(22_2R.tif,-compress Group4,output.pdf)
Thanks for help!
An ordinary user who needs some help with developing own programs for his own use.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: filipemb, Google [Bot], wineguy and 340 guests