Page 1 of 1

[Solved] -quiet doesn't desactivate warning in COM+ Object

Posted: 2008-02-05T09:14:31-07:00
by vincent-angel
Hi everybody,

Related to my post (viewtopic.php?f=1&t=10414), the option -quiet must desactivate all warning.
This case is with tiff file which have tiff tag problem.

with the batch tool 'convert' in dos/shell box, all is ok and work perfect.

But with the COM+ object, the option -quiet doesn't desactivate tiff tag warning so applications calling this object crash.

You can find tiff file with tag missing here : http://vincent.angel.free.fr/IM/

You can try this very easy example :

MyObject>>convert("-quiet","C:\002.tif","C:\test.png")

or

MyObject>>convert("-quiet","-adjoin","C:\002.tif","C:\003.tif","C:\tifmultipage.tif")

Thanks to all developpers

Regards

Re: the option -quiet doesn't desactivate warning in COM+ object

Posted: 2008-02-05T09:54:48-07:00
by magick
Did you check to ensure all versions of ImageMagick was removed from your system before you installed 6.3.8-4? If the -quiet options works from the command line it should work from COM+ as well.

Re: the option -quiet doesn't desactivate warning in COM+ object

Posted: 2008-02-05T12:29:48-07:00
by vincent-angel
Yes i had uninstall all previous version before. But, since i read your message, i have done 2 others tests :

On the same computer : i unregister the DLL (regsvr32 /u /s ImageMagickObject.dll), i uninstall imagemagick, i unregister the DLL (paranoiak mode :)), i reboot, i install imagemagick, i reboot --> same issue

On a new computer witch not have any version of IM : i install and same issue.

The two computer work with Windows XP SP2 (French).
My program is done with Windev and give me these errors when it crash :

'Erreur 80041771 : convert: 350: C:\Test\001.tif: unknown field with tag 317 (0x13d) encountered. `TIFFReadDirectory':

so i try with a vbs script :
i only change this line (in simpletest.vbs) :

Code: Select all

msgs = img.Convert("logo:","-format","%m,%h,%w","logo.jpg")
by

Code: Select all

msgs = img.Convert("-quiet","c:\test\002.tif","c:\test\ok.png")
and i have the same error :

Image

but it's ok in the command line, as you can see (with and without the -quiet option)

Image

i hope it can help

thank you for your time

best regards

Vincent

Re: the option -quiet doesn't desactivate warning in COM+ object

Posted: 2008-02-07T10:24:38-07:00
by magick
Download ImageMagick 6.3.8-5. It has a patch to safely ignore TIFF warnings.

Re: the option -quiet doesn't desactivate warning in COM+ object

Posted: 2008-02-07T15:18:14-07:00
by vincent-angel
magick wrote:Download ImageMagick 6.3.8-5. It has a patch to safely ignore TIFF warnings.
My god it's WONDERFUL !

Very big thanks to all developpers :D

PROBLEM SOLVED !!!