AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2005.03.05 18:10 "[Tiff] Bogus StripByteCounts field", by Bob Friesenhahn
2005.03.05 19:16 "Re: [Tiff] Bogus StripByteCounts field", by Frank Warmerdam
2005.03.05 19:23 "Re: [Tiff] Bogus StripByteCounts field", by Bob Friesenhahn
2005.03.05 19:45 "Re: [Tiff] Bogus StripByteCounts field", by Bob Friesenhahn
2005.03.06 10:37 "Re: [Tiff] Bogus StripByteCounts field", by Andrey Kiselev

2005.03.05 18:10 "[Tiff] Bogus StripByteCounts field", by Bob Friesenhahn

GraphicsMagick is using libtiff's scanline writer to write stripped TIFFs. For G4 and ZIP compression I notice that the files written produce this warning when read:

TIFFReadDirectory: Warning, golfer_zip.tif: Bogus "StripByteCounts" field, ignoring and calculating from imagelength.

TIFFWriteDirectory() is explicitly used before invoking TIFFClose().

Is there anything more that should be done in order for the StripByteCounts field to be written with a usable value?

The same warning is reported for files written by tiffcp.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/