[Digikam-devel] [Bug 141014] Time and dates in digikam

Arnd Baecker arnd.baecker at web.de
Mon Mar 17 21:34:14 GMT 2008


------- 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=141014         




------- Additional Comments From arnd.baecker web de  2008-03-17 22:34 -------
The relevant code is in QDateTime KExiv2::getImageDateTime(),
http://websvn.kde.org/branches/extragear/kde3/libs/libkexiv2/libkexiv2/kexiv2.cpp?view=markup
where 
  Exif.Photo.DateTimeOriginal 
is the first one which digiKam tries to get. If this
does not exist, Exif.Photo.DateTimeDigitized is used, etc.

Looking at http://www.exiv2.org/tags.html we have
Exif.Photo.DateTimeOriginal 
  The date and time when the original image data was generated. 
  For a digital still camera the date and time the picture was 
  taken are recorded.
Exif.Photo.DateTimeDigitized  
  The date and time when the image was stored as digital data.
Exif.Image.DateTime 	
  The date and time of image creation. 
  In Exif standard, it is the date and time the file was changed.


So as a test-case, consider an image `image_time.jpg`and set its times via:
exiv2 -M"set Exif.Image.DateTime Ascii 2008:03:03 03:00:00" image_time.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal Ascii 2008:02:02 02:00:00" \
image_time.jpg
exiv2 -M"set Exif.Photo.DateTimeDigitized Ascii 2008:01:01 01:00:00" \ 
image_time.jpg

which leads to:
  exiv2 -pt image_time.jpg | grep Date
  ls -l image_time.jpg
 
  Exif.Image.DateTime                Ascii      20  2008:03:03 03:00:00
  Exif.Photo.DateTimeOriginal        Ascii      20  2008:02:02 02:00:00
  Exif.Photo.DateTimeDigitized       Ascii      20  2008:01:01 01:00:00
  2008-03-17 22:25 image_time.jpg

This then shows inside of digikam
  created: 02/02/2008 02:00
  modified: 17/03/2008 22:25
and all displays are based on Exif.Photo.DateTimeOriginal.

So are there any remaining problems?



More information about the Digikam-devel mailing list