- Code: Select all
Private Sub cmdTest_Click()
On Error GoTo testDebug
Dim iMagick As New ImageMagickObject.MagickImage
iMagick.Convert "test.png", "test.jpg"
Exit Sub
testDebug:
Debug.Print "Error Number: " & Err.Number & vbCrLf & "Error Description: " & Err.Description
End Sub
The above code gives the following debug print:
- Code: Select all
Error Number: -2147418113
Error Description: Method 'Convert' of object 'IMagickImage' failed
Please note that the following shell command converts the file correctly:
- Code: Select all
convert test.png test.jpg
Before you ask, yes, Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) is installed.
