[Digikam-devel] [Bug 125779] use deflate compression for tiffs

Gilles Caulier caulier.gilles at free.fr
Wed May 10 00:31:03 BST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=125779         




------- Additional Comments From caulier.gilles free fr  2006-05-10 01:31 -------
SVN commit 539215 by cgilles:

digikam from trunk : DImg TIFF image loader : force to use ZLib max compression level when a new image is saved to disk using Deflate compression.

CCMAIL: digikam-devel kde org
CCBUGS: 125779

 M  +3 -0      tiffloader.cpp  


--- trunk/extragear/graphics/digikam/libs/dimg/loaders/tiffloader.cpp #539214:539215
 @ -399,7 +399,10  @
     bool compress = compressAttr.isValid() ? compressAttr.toBool() : false;
     
     if (compress)
+    {
         TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_DEFLATE);
+        TIFFSetField(tif, TIFFTAG_ZIPQUALITY, 9);
+    }
     else
         TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);



More information about the Digikam-devel mailing list