Page 1 of 1

[Solved in 6.3.8-5] How to desactivate tiff tag warning

Posted: 2008-01-10T03:58:30-07:00
by vincent-angel
hi everybody,

i have a problem using the com+ object with tif conversion.
i very easy try : i want to convert many tif files in one multi-tiff. So :
MyObject>>convert("-adjoin","c:\test\*.tif","c:\test\tifmultipage.tif")

but my program crash with an exception :

Code: Select all

En tentant d'invoquer la méthode <convert>, l'objet Automation/ActiveX a renvoyé l'erreur suivante :
'Erreur 80041771 : convert: 350: c:\test\0000000190_page_001.tif: unknown field with tag 317 (0x13d) encountered. `TIFFReadDirectory': 
convert: 350: c:\test\0000000190_page_002.tif: unknown field with tag 317 (0x13d) encountered. `TIFFReadDirectory': 
convert: 350: c:\test\0000000190_page_003.tif: unknown field with tag 317 (0x13d) encountered. `TIFFReadDirectory': 
convert: 350: c:\test\0000000190_page_004.tif: unknown field with tag 317 (0x13d) encountered. `TIFFReadDirectory': 
convert: 350: c:\test\0000000190_page_005.tif: unknown field with tag 317 (0x13d) encountered. `TIFFReadDirectory': 
convert: 350: c:\test\0000000190_page_006.tif: unknown field with tag 317 (0x13d) encountered. `TIFFReadDirectory': 
convert: 350: c:\test\0000000190_page_007.tif: unknown field with tag 317 (0x13d) encountered. `TIFFReadDirectory': 
convert: 350: c:\test\0000000190_page_008.tif: unknown field with tag 317 (0x13d) encountered. `TIFFReadDirectory': 
convert: 350: c:\test\0000000190_page_009.tif: unknown field with tag 317 (0x13d) encountered. `TIFFReadDirectory': 
convert: 350: c:\test\0000000190_page_010.tif: unknown field with tag 317 (0x13d) encountered. `TIFFReadDirectory': 
'
En tentant de lire la propriété <convert>, l'objet Automation/ActiveX a renvoyé l'erreur suivante :
'Erreur 80020003, Le membre demandé n'existe pas' 
En tentant d'écrire la propriété <convert>, l'objet Automation/ActiveX a renvoyé l'erreur suivante :
'Erreur 80020003, Le membre demandé n'existe pas'
but the multi-tiff is created and is OK.
so this is warning message.

I tried with the convert.exe in dos box :
Image

and the multi-tif is ok


So :
is it possible to desactive these warning ('quiet' doesn't work)
or
is it possible to get warning is a string var or a file (*.txt) ???

in fact, how can i do for my program doesn't crash ...


Thank you

Regards

Vincent

Re: How to desactivate tiff tag warning

Posted: 2008-01-10T17:34:39-07:00
by anthony
-quite is supposed to tel Im to igbnore those warnings.
Maybe your IM is too old for that specific aspect of -quiet.
If that still does not fix it, report a bug in the Bugs forum.

Note You must give it BEFORE reading the image.

Similarly -adjoin is an output setting, and probably should be done just before the image output rather than before image input. It should not effect the outcome here, but some options have other effects so it is good practice to only use a setting BEFORE the operation (final write in this case) that makes use of the setting. also makes the command clearer to other programmers.

Re: How to desactivate tiff tag warning

Posted: 2008-01-14T03:40:16-07:00
by vincent-angel
hello anthony,

Thx for your answer.
So i have test all of possibilities. See below :

Code: Select all

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

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

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

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

MyObject>>convert("-adjoin","C:\Test\001.tif","C:\Test\003.tif","C:\Test\tifmultipage.tif","-quiet")
in all case, my program crash but the Multi-TIF is OK.

I try other thing :

Code: Select all

MyObject>>convert("-quiet")
MyObject>>convert("-adjoin","C:\Test\001.tif","C:\Test\003.tif","C:\Test\tifmultipage.tif")
In this case, the program done just after MyObject>>convert("-quiet") and don't execute the second line.
So i think MyObject>>convert("-quiet"), return an exit code ...


My version of IM is :

Code: Select all

C:\>identify -version
Version: ImageMagick 6.3.7 01/04/08 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
Another thing, i try to get the version in a string var but i don't know how to do.
I try :

Code: Select all

mystring is a string = MyObject>>identify("-version")
in this example,

mystring value is 0. I think 0 = success ...
I try

Code: Select all

mystring is a string = ""
MyObject>>identify("-version",mystring)
but crash : mystring is not a valid parameter ...


Thanks for your help

Regards

Vincent

Re: How to desactivate tiff tag warning

Posted: 2008-01-16T07:11:02-07:00
by PCPete
I haven't been able to suppress the warnings you receive either. It seems like I only get this warning when the .tiff file contains layers. If I save a .tiff without layers, it does not encounter this error, so depending on what the tiff is, you may be able to work around it knowing this. Most use Tiff for use with transparent elements which require layers I believe, so you may also find yourself at the same point I am, where -quiet, even on the latest build, does not work here.

Re: How to desactivate tiff tag warning

Posted: 2008-01-16T07:51:19-07:00
by vincent-angel
Hi pete,

Thx for your answer.
Yes the pb come only with tiff file not having all TAG writed.
But my tiff come from a Scanner (Kodak) i have to work with them, without modify them.
The batch is ok because the multi-tiff created is ok ... just these warning which are boring me :)

I will wait a message from anthony or image-magick to see if i have to post in bug section or not ...

May this problem resolved in next release :)

Vincent

Re: How to desactivate tiff tag warning

Posted: 2008-01-16T17:26:10-07:00
by anthony
As I said -quiet (given before the first image is read) should turn off any error or warnings which do not effect image results. If it does not do this report it in the Bugs forum with an example image and command line.

The flag was originally added for handling errors in an video format...
for example the command

Code: Select all

    convert -quiet -delay 1 plane.avi plane.gif
From http://imagemagick.org/Usage/video/#gif

TIFF problems will need to be reported to have them fixed in the same way.

Re: How to desactivate tiff tag warning

Posted: 2008-02-05T07:28:37-07:00
by vincent-angel
hi everybody,

good news for me :) and for others people ...

The -quiet option is ok and work fine with tiff having tag problems with the 6.3.8-4 version.
Warning messages disappear with the batch convert.exe in dos/shell box.

But the error still there with the COM+ object.
So i create a new post in bugs forum right now.

Thanks to all developpers of ImageMagick :D

Re: [Solved in 6.3.8-5] How to desactivate tiff tag warning

Posted: 2008-02-07T15:20:36-07:00
by vincent-angel
Problem solved in 6.3.8-5

viewtopic.php?f=3&t=10589

Thanks to all !!!