[Digikam-devel] [Bug 127972] digikam does not *add* EXIF:DateTimeOriginal when modifying date

Gilles Caulier caulier.gilles at free.fr
Tue May 30 06:26:58 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=127972         
caulier.gilles free fr changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From caulier.gilles free fr  2006-05-30 07:26 -------
SVN commit 546459 by cgilles:

digikam from trunk : patch from Jens B.Benecke about to set Date & Time Original tags 
BUG: 127972

 M  +9 -3      dmetadata.cpp  


--- trunk/extragear/graphics/digikam/libs/dmetadata/dmetadata.cpp #546458:546459
 @ -738,19 +738,25  @
 {
     try
     {    
-        kdDebug() << d->filePath << " ==> Date&Time: " << dateTime.toString(Qt::ISODate) << endl;
+        // In first we write date & time into Exif.
         
-        // In first we write date & time into Exif.
-                
+        // DateTimeDigitized is set by slide scanners etc. when a picture is digitized.
+        // DateTimeOriginal specifies the date/time when the picture was taken.
+        // For digital cameras, these dates should be both set, and identical.
+        // Reference: http://www.exif.org/Exif2-2.PDF, chapter 4.6.5, table 4, section F.
+
         const std::string &exifdatetime(dateTime.toString(Qt::ISODate).ascii());
         d->exifMetadata["Exif.Photo.DateTimeDigitized"] = exifdatetime;
+        d->exifMetadata["Exif.Photo.DateTimeOriginal"]  = exifdatetime;
         
         // In Second we write date & time into Iptc.
 
         const std::string &iptcdate(dateTime.date().toString(Qt::ISODate).ascii());
         d->iptcMetadata["Iptc.Application2.DigitizationDate"] = iptcdate;
+        d->iptcMetadata["Iptc.Application2.DateCreated"]      = iptcdate;
         const std::string &iptctime(dateTime.time().toString(Qt::ISODate).ascii());
         d->iptcMetadata["Iptc.Application2.DigitizationTime"] = iptctime;
+        d->iptcMetadata["Iptc.Application2.TimeCreated"]      = iptctime;
         
         setImageProgramId();
         return true;



More information about the Digikam-devel mailing list