2006.05.23 16:01 "[Tiff] Problems with image tiff Compression CCITT 1D in Windows NT", by Jeronimo Torres

2006.07.14 04:41 "Re: [Tiff] The problem of Convert tiff", by Joris Van Damme

Robert Zhang wrote:

     After i convert a tiff of Wang Tiff to a tiff of TIFF/F Class, The converted tiff of TIFF/F Class cannot display in windows.

That doesn't necessarily mean the TIFFs bad. I've seen reports of the standard viewer in WinXP failing on legit TIFFs, and the Wang/Kodak thing that grew from (presumably) certainly isn't perfect either.

However, in this case, the converted TIFF is indeed bad as can be seen from the tagdump.

SamplesPerPixel (1 Short): 1

ImageLength (1 Short): 2272

RowsPerStrip (1 Short): 2272

This would imply a single-strip TIFF. But, looking at the StripOffsets and StripByteCounts tags...

StripByteCounts (16 Long): 1806, 2557, 7627, 4459, 7301,

StripOffsets (16 Long): 8, 1814, 4371, 11998, 16457,

...reveals there are 16 strips instead. The StripByteCounts look like they may indicate proper strips, given the ByteCounts of the strips in the original and the extend of the conversion. So my guess is possibly the RowsPerStrip value only is incorrect and might need to be 146 instead.

So you ought to be investigating a bug in the conversion code. Are you using LibTiff? If so, may be good to post the relevant code for us to look at.

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