2013.05.15 13:37 "Re: [Tiff] TIFF conversion error", by Bob Friesenhahn
I have several TIFFs that I need to convert to PNG and I'm using imagemagick, which uses libtiff if i'm not mistaken, as a commandline tool in the backend.
The problem is that the some of the tiffs are experiencing an error during conversion(http://www.2shared.com/complete/vnb96t_9/error.html). convert.exe: Unknown field with tag 292 (0x124) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/824. convert.exe: Bad code word at line 5151 of strip 0 (x 3744). `Fax4Decode' @ error/tiff.c/TIFFErrors/562.
However, the TIFF can be viewed properly in the IMDisplay and other TIFF viewers and ImageMagick's identify.exe doesn't encounter the error. The PNG image is actually generated (so far there is no noticeable rendering errors) even though the above error is encountered however my program checks the error status which will be set to non-zero and the program will mark the conversion as failed.
From my initial investigation, this seems an error related to the compression used in TIFF (and I'm thinking that the underlying libtiff is throwing this). I'm not sure if this bug is related (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=630042) Though I can't find a post with the exact error as mine.
Can someone advise the cause and if the error can be ignored?
Libtiff is issuing these as warnings and ImageMagick is reporting them as warnings. The warnings are issued due to libtiff encountering tags that it does not handle (usually proprietary tags). Usually ignoring such tags is benign, but not always. I think that ImageMagick provides an option to quench these warnings. You might want to investigate that in an ImageMagick-related forum.
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/