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
March 2005

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

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

2005.03.05 19:16 "Re: Bogus StripByteCounts field", by Frank Warmerdam

On Sat, 5 Mar 2005 12:10:10 -0600 (CST), Bob Friesenhahn wrote:
> 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?

Bob, 

What does the tiffdump on the resulting file look like?

You might look into TIFFWriteCheck().  I call it like this
but I think it is only needed when I haven't even started
writing any imagery yet. 

        TIFFWriteCheck( hTIFF, TIFFIsTiled(hTIFF), 
                           "GTiffDataset::Crystalize");
        TIFFWriteDirectory( hTIFF );

> The same warning is reported for files written by tiffcp.

Yikes, this is disturbing.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent