Revision: 1165
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1165&view=rev
Author:   nadvornik
Date:     2008-10-18 19:20:27 +0000 (Sat, 18 Oct 2008)

Log Message:
-----------
simple synchronization XMP <-> Exif, IPTC

Modified Paths:
--------------
    trunk/src/exiv2.cc

Modified: trunk/src/exiv2.cc
===================================================================
--- trunk/src/exiv2.cc  2008-10-18 18:22:57 UTC (rev 1164)
+++ trunk/src/exiv2.cc  2008-10-18 19:20:27 UTC (rev 1165)
@@ -48,7 +48,11 @@
 #include <exiv2/preview.hpp>
 #endif
 
+#if EXIV2_TEST_VERSION(0,17,0)
+#include <exiv2/convert.hpp>
+#endif
 
+
 extern "C" {
 #include <glib.h>
 
@@ -216,6 +220,9 @@
 #endif
                exifData_ = imageData_->exifData();
                iptcData_ = imageData_->iptcData();
+#if EXIV2_TEST_VERSION(0,17,0)
+               syncExifWithXmp(exifData_, xmpData_);
+#endif
        }
 
        virtual ~_ExifDataProcessed()
@@ -231,7 +238,10 @@
 
        virtual void writeMetadata()
        {
-               
+#if EXIV2_TEST_VERSION(0,17,0)
+               syncExifWithXmp(exifData_, xmpData_);
+               copyXmpToIptc(xmpData_, iptcData_); //FIXME it should be 
configurable
+#endif
                if (sidecarData_) 
                        {
                        sidecarData_->image()->setXmpData(xmpData_);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to