AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2011.06.05 12:38 "[Tiff] Questions on TIFF LZW compression", by Thomas Richter
2011.06.05 12:47 "[Tiff] Questions on TIFF LZW compression", by Thomas Richter
2011.06.06 16:17 "Re: [Tiff] Questions on TIFF LZW compression", by Olivier Paquet
2011.06.06 16:55 "Re: [Tiff] Questions on TIFF LZW compression", by Bob Friesenhahn
2011.06.07 16:45 "Re: [Tiff] Questions on TIFF LZW compression", by Thomas Richter
2011.06.07 17:06 "Re: [Tiff] Questions on TIFF LZW compression", by Bob Friesenhahn
2011.06.09 01:27 "Re: [Tiff] Patch for tif_ojpeg version 3.9.5", by Kevin Myers
2011.06.08 22:32 "[Tiff] Patch for tif_ojpeg version 3.9.5", by
2011.06.09 05:34 "Re: [Tiff] Patch for tif_ojpeg version 3.9.5", by Andreas Kleinert

2011.06.07 17:06 "Re: [Tiff] Questions on TIFF LZW compression", by Bob Friesenhahn

While I am not an expert at TIFF compression issues, I suspect that you are correct that the predictor has little value (and may cause harm) at depths other than 8 (and perhaps 16) bits since the compressor works on an octet stream.

Question rather is, does it predict octects, or pixel values modulo 2^N?

LZW works with streams of bytes, not pixel values. TIFF LZW is similar to standard LZW except that I understand that it includes an implementation defect (which must be supported).

I'm not so much concerned about the compression performance - as you say, there are clearly better codecs available - but rather about correctness. I really wonder how specs as sketchy as the TIFF specs got accepted.

The TIFF specification is an Adobe publication which was formulated according to the internal rules they followed at the time. It is not like an ISO standard.

I understand. Is there a newer spec than rev.6 available? I don't see much of this in the specs I have.

It seems exceedingly unlikely that Adobe will ever release a new major version of the TIFF specification. Over the years they have produced a number of documents describing changes and additions. Cris Cox from Adobe has been quite helpful, but Adobe's focus is not on legacy formats like TIFF so it is difficult for him to obtain corporate support for issuing new specifications.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/