trufanov-nok / scantailor-universal

ScanTailor Universal - a fork based on Enhanced+Featured+Master versions of ST
http://scantailor.org
Other
181 stars 16 forks source link

Use Adobe flavor of TIFF DEFLATE #83

Closed d235j closed 3 years ago

d235j commented 3 years ago

At present, the DEFLATE method used for TIFF is the nonstandard libtiff version. This changes it to using the standardized "AdobeDeflate" compression method. The nonstandard method is still available when the "Hide rare or unsupported methods" box is unchecked.

trufanov-nok commented 3 years ago

Ok, I've doublechecked. LibTiff does support Adobe deflate code. Adobe is a copyright holder of Tiff format and the owner of Tiff specification. And indeed they declared the other code obsolete in TIFFphotoshop.pdf:

Note: A proprietary ZIP/Flate compression code (0x80b2) has been used by some software vendors. This code should be considered obsolete. The compression used by the obsolete code is identical to that defined above. We recommend that TIFF implementations recognize and read the obsolete code, but only write the official compression code (8).