I can no longer call Convert (and many other functions, some work some don't) from VB. I'm using version 6.5.6-4, which is currently the newest version of ImageMagick. I installed from Windows Binary. What I WANT to do (and have been successfully doing until installing the new version) is more complex, but here is a very simple code example to help duplicate the bug.
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:
Before you ask, yes, Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) is installed.