[Digikam-devel] extragear/graphics/digikam/libs/dimg/loaders

Gilles Caulier caulier.gilles at free.fr
Wed May 10 00:30:57 BST 2006


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 at 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