2017.07.11 06:03 "[Tiff] LZW read errors in recent TIFF releases", by Larry Gritz

2017.07.11 06:03 "[Tiff] LZW read errors in recent TIFF releases", by Larry Gritz

Has anybody noticed that with the last minor release or two, when reading the libtiff example image quad-lzw.tif, there are read errors like this:

Not enough data at scanline 0 (short 1536 bytes)

It's not just my software -- trying to 'tiffcp' the file results in:

LZWPreDecode: Warning, Old-style LZW codes, convert file.
LZWDecodeCompat: Warning, LZWDecode: Strip 0 not terminated with EOI code.
LZWDecodeCompat: Not enough data at scanline 0 (short 7680 bytes).
libtiffpic/quad-lzw.tif: Error, can't read strip 0.

It's on MacOS that I noticed this. Haven't tested other platforms yet.

Does this ring any bells? Anybody have any insight?

But also, thinking that maybe I have a wildly old example file ("old-style", as it said), I tried to re-download the collection of example images from ftp://download.osgeo.org/libtiff/pics-3.8.0.tar.gz

But the link fails. Maybe during the recent web site fiasco, this got lost in the shuffle?

--
Larry Gritz
lg@larrygritz.com