Page 1 of 1

error converting tif to jpg

Posted: 2012-03-09T05:39:18-07:00
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

Re: error converting tif to jpg

Posted: 2015-07-11T16:28:40-07:00
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.

Re: error converting tif to jpg

Posted: 2015-07-13T07:20:36-07:00
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.