Convert Failed

ImageMagickObject is a Windows COM+ interface to ImageMagick. COM+, Visual Basic, and Delphi users should post to this discussion group.
Post Reply
chaitanyakonda
Posts: 1
Joined: 2014-09-26T09:15:13-07:00
Authentication code: 6789

Convert Failed

Post by chaitanyakonda »

I'm using Windows 7 and Excel 2013.

I added the reference ImageMagickObject 1.0 Type Library and also made sure that I am not binding early.
But I still have an error when I run the following code.

Code: Select all

Private Sub CommandButton1_Click()
On Error GoTo ErrorHandler
Dim img
Set img = New ImageMagickObject.MagickImage
MsgBox (img.Convert("C:\Users\AIH\Desktop\test1.jpg", "-format", "%c", "histogram:info:C:\Users\AIH\Desktop\out.txt"))
Exit Sub
ErrorHandler:
     MsgBox (Err.Number & ":" & Err.Description)
End Sub
The error number is '-2147215503'.

Please let me know how I can resolve this? I would also be grateful if anybody can point for VBA ImageMagick Documentation.

Thanks a lot.
Post Reply