Menu ▾ ▴

#138 TIFF Deflate compression fixes

None
pending
None
5
2021-07-16
2020-09-22
No

According to TIFF spec supplement 2 https://www.adobe.io/content/dam/udp/en/open/standards/tiff/TIFFphotoshop.pdf the tag value COMPRESSION_DEFLATE is not to be used when writing new files, but only to be supported for reading legacy ones. Writers should only use COMPRESSION_ADOBE_DEFLATE. These schemes are equivalent.

The Deflate compression also benefits from a predicition step, not only LZW.

1 Attachments

Discussion

  • Milos Komarcevic

    It would also be nice to add suport for prediction (value 3) when writing compressed floating point TIFFs, but it seems this sample format information does not get to WriteCompression() currently?

     
  • Hervé Drolon

    Hervé Drolon - 2021-07-16
    • status: open --> pending
    • assigned_to: Hervé Drolon
    • Group: -->
     
  • Hervé Drolon

    Hervé Drolon - 2021-07-16

    Hi Milos,

    Thanks for the patch, it is now in the SVN.
    I have also added the suggestion for the PREDICTOR_FLOATINGPOINT TIFF predictor.

    Hervé

     
    • Milos Komarcevic

      Great, thanks Hervé.

       

Anonymous
Anonymous

Add attachments
Cancel