error converting tif to jpg

ImageMagickObject is a Windows COM+ interface to ImageMagick. COM+, Visual Basic, and Delphi users should post to this discussion group.
Post Reply
Sashi
Posts: 5
Joined: 2011-09-07T22:54:43-07:00
Authentication code: 8675308
Location: Chennai, India

error converting tif to jpg

Post by Sashi »

When i convert tif to jpg using the Image Magick COM in VB.net, an error message 'Catastropic failure...exception' is displayed.

Dim img As New ImageMagickObject.MagickImage
img = CreateObject("ImageMagickObject.MagickImage.1")
img.convert("Convert","D:\test.tif","D:\test.jpg")

TIFF file:

Resolution: 600 dpi
Pixel dimension: 2400,4199

Please let me know the reason why the jpg is not created.

thanks,
Sashi
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: error converting tif to jpg

Post by fmw42 »

Sorry I do do not use Windows and do not know the answer, but can you convert the image using command line syntax? Perhaps your TIF is corrupt?

Also for both of you, please always post your IM version and Windows platform.
spieler
Posts: 47
Joined: 2004-10-08T09:03:16-07:00
Location: Iowa

Re: error converting tif to jpg

Post by spieler »

What results do you get when you run the test script at C:\Program Files\ImageMagick-6.9.1-Q8\ImageMagickObject\Tests ?

It's also important to note what bit version your end application is. If it's 32-bit, you need install the 32-bit version of ImageMagick.
Post Reply