| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2006.06.08 18:44 "Re: libtiff writes zero valued tile offsets and byte counts", by Frank WarmerdamThomas 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 |
|||||||