[Kde-imaging] kdeextragear-libs-1/kipi-plugins/batchprocessimages

Gilles Caulier caulier.gilles at free.fr
Thu Jan 27 09:46:22 CET 2005


CVS commit by cgilles: 

BugFix in BatchResizeImages kipi plugin: using ImageMagick "composite" do not preserve Exif informations per default.
Need to use "-profile" option for resolve this problem. 
Note: ImageMagick "Convert" program preverve it!
CCMAIL: kde-imaging at kde.org, digikam-devel at lists.sourceforge.net


  M +31 -21    resizeimagesdialog.cpp   1.30


--- kdeextragear-libs-1/kipi-plugins/batchprocessimages/resizeimagesdialog.cpp  #1.29:1.30
@@ -408,4 +408,9 @@ QString ResizeImagesDialog::makeProcess(
           *proc << item->pathSrc() + "[0]";
 
+          // ImageMagick composite program do not preserve exif data from original. 
+          // Need to use "-profile" option for that.
+          
+          *proc << "-profile" << item->pathSrc();
+          
           Temp2 = "xc:rgb(" + Temp.setNum(m_bgColor.red()) + ",";
           Temp2.append(Temp.setNum(m_bgColor.green()) + ",");
@@ -530,4 +535,9 @@ QString ResizeImagesDialog::makeProcess(
           *proc << Temp2;
 
+          // ImageMagick composite program do not preserve exif data from original. 
+          // Need to use "-profile" option for that.
+          
+          *proc << "-profile" << item->pathSrc();
+
           *proc << "-resize" << targetBackgroundSize + "!";
 




More information about the Kde-imaging mailing list