Page 1 of 1

ImageMagickObject error: 0x80041771

Posted: 2008-06-12T09:50:06-07:00
by stronky
I trying to call ImageMagick from vbscript

I installed ImageMagick-6.4.1-6-Q16-windows-dll.exe and now i try to run the testscript:
"cscript SimpleTest.vbs" gives a runtime error -2147215503. When I remove the " 'On Error Resume Next " in SimpleTest.vbs i get the message:

ImageMagickObject.MagickImage.1: 0x80041771

These are the lines of code:

Dim img
Dim msgs
Set img = CreateObject("ImageMagickObject.MagickImage.1")
msgs = img.Convert("logo:","-format","%m,%h,%w","logo.jpg")
MsgBox "info: " & msgs


Any clues?

Regards,
Leonard