2010.09.10 20:37 "[Tiff] Problem with a particular image", by

2010.09.10 20:48 "Re: [Tiff] Problem with a particular image", by Olivier Paquet

On Fri, Sep 10, 2010 at 4:37 PM, <christopher.l.watkins@kodak.com> wrote:

I'm using LibTIFF 3.9.4, and I have an image that is failing.

I'm trying to do a TIFFReadScanline, and the very first call fails with 'LZWDecode: Not enough data at scanline 0 (short 3096 bytes)'. I traced a little further, and found that the very first token it tries to decode returns an EOI (end of image?). The file clearly has a bunch of data after this point. I would happily assume a corrupt image, except I can open the image without problem in Photoshop or MS-Paint. The image renders as completely blank (all white).

Given the photometric of "(white is zero)", perhaps they simply ignore the codec error and assume all the data is zeroes. For all we know, they could be showing you uninitialized memory. Is "all white" what your image is supposed to be (if you know)? How large is the file? An all white image should be fairly small with LZW compression.

Below are the tags that I hand-decoded from the image.

tiffdump can usually do this a lot more easily by the way.