[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:41:05 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=0b65033

The following commit has been merged in the master branch:
commit 0b650334888c9c3b9828e2ce78c98a920b369de1
Author: Andreas Huggel <ahuggel at gmx.net>
Date:   Sun Jan 10 16:00:09 2010 +0000

    #665: Quick-fix for the exiv2 utility to allow inserting Exif data into ORF files.
---
 src/actions.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/actions.cpp b/src/actions.cpp
index 446fa89..3083d1a 100644
--- a/src/actions.cpp
+++ b/src/actions.cpp
@@ -880,7 +880,9 @@ namespace Action {
         if (Params::instance().verbose_ && image->exifData().count() > 0) {
             std::cout << _("Erasing Exif data from the file") << std::endl;
         }
-        if (0 == strcmp(image->mimeType().c_str(), "image/tiff")) {
+        // Todo: ORF files are crippled after this. Find out exactly which tags are required
+        if (   0 == strcmp(image->mimeType().c_str(), "image/tiff")
+            || 0 == strcmp(image->mimeType().c_str(), "image/x-olympus-orf")) {
             Exiv2::ExifData& ed = image->exifData();
             ed.erase(std::remove_if(ed.begin(), ed.end(), isExifTag), ed.end());
         }
@@ -1739,7 +1741,8 @@ namespace {
                 std::cout << _("Writing Exif data from") << " " << source
                           << " " << _("to") << " " << target << std::endl;
             }
-            if (0 == strcmp(targetImage->mimeType().c_str(), "image/tiff")) {
+            if (   0 == strcmp(targetImage->mimeType().c_str(), "image/tiff")
+                || 0 == strcmp(targetImage->mimeType().c_str(), "image/x-olympus-orf")) {
                 Exiv2::ExifData& ted = targetImage->exifData();
                 if (!preserve) {
                     targetImage->readMetadata();

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list