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.

Convert no longer working with VB

Postby DEVLitehouse » 2009-09-25T17:00:09+00:00

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. :)
DEVLitehouse
 
Posts: 1
Joined: 2009-09-25T15:11:34+00:00

Re: Convert no longer working with VB

Postby magick » 2009-09-26T17:25:16+00:00

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.
User avatar
magick
Site Admin
 
Posts: 5671
Joined: 2003-05-31T11:32:55+00:00

Re: Convert no longer working with VB

Postby roach » 2009-10-08T13:32:37+00:00

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,
roach
 
Posts: 11
Joined: 2008-07-15T12:00:14+00:00

Re: Convert no longer working with VB

Postby magick » 2009-10-08T17:00:40+00:00

That is the expected output. Its a simple test to just prove it works.
User avatar
magick
Site Admin
 
Posts: 5671
Joined: 2003-05-31T11:32:55+00:00


Return to Windows COM+ & Visual Basic

Who is online

Users browsing this forum: No registered users and 2 guests