AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
July 2006

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2006.07.14 04:09 "The problem of Convert tiff", by Robert Zhang
2006.07.14 04:41 "Re: The problem of Convert tiff", by Joris Van Damme
2006.07.14 05:47 "Re: The problem of Convert tiff", by Robert Zhang
2006.07.14 07:36 "Re: The problem of Convert tiff", by Joris Van Damme
2006.07.14 14:08 "Re: The problem of Convert tiff", by Bernie Pallek

2006.07.14 04:41 "Re: 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