| 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 |
Thread2005.12.05 13:49 "Re: Incorrect rendering of tif-images by libtiff 3.7.2", by Joris Van DammeTobias Hilbricht wrote: > I exported a Pixel image as a tiff-image using that application; you > can see the file at http://www.linopus.de/debian/pixeltest.tif ImageWidth (1 Long): 640 ImageLength (1 Long): 480 ResolutionUnit (1 Short): Inch BitsPerSample (3 Short): 8, 8, 8 Compression (1 Short): Uncompressed Photometric (1 Short): RGB StripOffsets (30 Long): 380, 31100, 61820, 92540, 123260, 153980,... SamplesPerPixel (1 Short): 3 RowsPerStrip (1 Short): 16 StripByteCounts (30 Long): 380, 31100, 61820, 92540, 123260, 153980,... You can easilly see what's wrong with it: the StripByteCounts values are incorrectly identical to the StripOffsets value. Haven't really got time right now to try, but I suspect that if you calculate correct value of StripByteCounts, which should be easy since this TIFF does not use any compression, and correct the StripByteCounts value, everything would work fine. The fact that some applications render this TIFF, is probably simply because they apply some robust StripByteCounts value correction in a case like this. 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 |
|||||||