2005.10.18 09:21 "[Tiff] Confirmation on stripbytecount tag", by Katrina Maramba

2005.10.18 09:47 "Re: [Tiff] Confirmation on stripbytecount tag", by Joris Van Damme

Katrina

Stripbytecount (if there are more than 1) has the same value all throughout, except for the last one (which would be the remainder). Example, if there are 120 counts with 61KB as the first stripbytecount, we can assume that it will be 61KB until the 119th strip and the 120th strip will be less than 61KB.

Your assumption holds for uncompressed stripped data. Yes, in that case, all strips but the last one will have the same ByteCount, since all strips but the last one have the same number of uncompressed image lines in them. (Nevertheless, even in this case, careful checking may be in order, and would normally have to be included in the implementation of the 'uncompressed decompressor' anyhow even if not checked in an earlier state.)

Your assumption does not hold if any kind of compression in involved, for obvious reasons.

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html