AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2006.05.23 16:01 "[Tiff] Problems with image tiff Compression CCITT 1D in Windows NT", by Jeronimo Torres
2006.05.24 08:12 "Re: [Tiff] Problems with image tiff Compression CCITT 1D in Windows NT", by Gerben Vos
2006.07.14 04:09 "[Tiff] The problem of Convert tiff", by
2006.07.14 04:41 "Re: [Tiff] The problem of Convert tiff", by Joris Van Damme
2006.07.14 05:47 "Re: [Tiff] The problem of Convert tiff", by
2006.07.14 07:36 "Re: [Tiff] The problem of Convert tiff", by Joris Van Damme
2006.07.14 14:08 "RE: [Tiff] The problem of Convert tiff", by
2006.07.14 07:31 "[Tiff] About the tag stripbytecount and stripoffset.", by
2006.07.18 01:56 "Re: [Tiff] About the tag stripbytecount and stripoffset.", by Chris Cox
2006.07.18 02:53 "Re: [Tiff] About the tag stripbytecount and stripoffset.", by

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