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
May 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.05.25 17:24 "libtiff writes zero valued tile offsets and byte counts", by Thomas Sharpless
2006.05.30 08:42 "Re: libtiff writes zero valued tile offsets and byte counts", by Gerben Vos
2006.05.30 18:04 "Re: libtiff writes zero valued tile offsets and byte counts", by Chris Cox
2006.06.01 03:42 "Re: libtiff writes zero valued tile offsets and byte counts", by Joris Van Damme
2006.06.01 04:09 "Re: libtiff writes zero valued tile offsets and byte counts", by Chris Cox
2006.06.08 22:27 "Re: libtiff writes zero valued tile offsets and byte counts", by Mark R Olin
2006.06.08 23:22 "Re: libtiff writes zero valued tile offsets and byte counts", by Joris Van Damme
2006.06.08 18:44 "Re: libtiff writes zero valued tile offsets and byte counts", by Frank Warmerdam

2006.06.08 18:44 "Re: libtiff writes zero valued tile offsets and byte counts", by Frank Warmerdam

Thomas Sharpless wrote:
> My scanning camera app writes tiled tiff images using libtiff under 
> Win32. The images are readable by PhotoShop (6.01) but not by PaintShop 
> Pro 7 or libtiff itself. The problem seems to be that all the tile 
> offsets and bytecounts in the file are zero (their number is correct).  
> Can anyone tell me why?

Thomas,

I don't see any obvious problem with the code you are showing.  The normal
conclusion with such a problem would be that either TIFFClose() didn't get
called, or that you hadn't ever actually written out tiles, but had done
something to flush out an empty directory (like a TIFFWriteCheck()
and/or TIFFWriteDirectory()).

I don't know how Photoshop could read a file with all zero offsets and
sizes for tiles.  Sometimes I'm amazed at the amount of guessing
applications will do to handle badly broken files.

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    | President OSGF, http://osgeo.org