Convert no longer working with VB

ImageMagickObject is a Windows COM+ interface to ImageMagick. COM+, Visual Basic, and Delphi users should post to this discussion group.
Post Reply
DEVLitehouse

Convert no longer working with VB

Post by DEVLitehouse »

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:

Code: Select all

convert test.png test.jpg
Before you ask, yes, Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) is installed. :)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Convert no longer working with VB

Post by magick »

Unfortunately we cannot reproduce the problem. We installed the ImageMagick binary and source distribution. The source provides two Visual Basic scripts, ArrayTest.vbs and SimpleTest.vbs. Both scripts completed without complaint.
roach

Re: Convert no longer working with VB

Post by roach »

I'm receiving the same error, with version 6.5.6-Q16 (dynamic)

Running SimpleTest.vbs apparantly does nothing at all, but pops up a messagebox that says "info: LOGO,480,640".
Running ArrayTest.vbs pops up a messagebox "array: 474", another with "output:71905", and creates an empty (0kb) JPEG file, bill_meets_gorilla_screen_iptc.jpg.

Is this the expected output?

thanks,
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Convert no longer working with VB

Post by magick »

That is the expected output. Its a simple test to just prove it works.
spieler
Posts: 47
Joined: 2004-10-08T09:03:16-07:00
Location: Iowa

Re: Convert no longer working with VB

Post by spieler »

Early binding no longer works. See my post at

viewtopic.php?f=3&t=14461
Post Reply