[KPhotoAlbum] kphotoalbum reads the wrong date from EXIF

Jesper K. Pedersen blackie at blackie.dk
Fri Mar 3 18:35:02 GMT 2006


Thanks, my implementation did indeed work.

Cheers
Jesper.

On Thursday 02 March 2006 14:43, Marco Molteni wrote:
| sure, I should have done this before:
|
| exiv2 -M "set Exif.Image.DateTime yyyy:mm:dd hh:mm:ss" file
| exiv2 -M "set Exif.Photo.DateTimeOriginal yyyy:mm:dd hh:mm:ss" file
| exiv2 -M "set Exif.Photo.DateTimeDigitized yyyy:mm:dd hh:mm:ss" file
|
| note the quotes and the date syntax, it must be as shown according to
| the spec.
|
| and Jesper, the more I use KPA, the more I love it. Really a good work :-)
Thanks.

|
| marco
|
| "Jesper K. Pedersen" <blackie at blackie.dk> wrote:
| > I believe I have this issue fixed now. Could you please send me the
| > command  line you used for exiv2 to edit the files, so I can test my
| > changes.
| >
| > Cheers
| > Jesper.
| >
| > On Tuesday 28 February 2006 21:28, Marco Molteni wrote:
| > | Hi (Jesper you are a shiny apple),
| > |
| > | I am using kphotoalbum-snap-2006.01.28.
| > | By looking at the EXIF specs (http://exif.org/specifications.html),
| > | there are 3 timestamps: Image.DateTime          -- time of last
| > | modification to the image
| > | Photo.DateTimeOriginal  -- time of the creation of the original
| > | Photo.DateTimeDigitized -- time of digitization of the original
| > |
| > | seen in another way:
| > |
| > | DateTimeOriginal <= DateTimeDigitized <= DateTime
| > |
| > | I believe the right timestamp to consider is DateTimeOriginal, with
| > | fallback to other two in case DateTimeOriginal is not there.
| > |
| > | On the other hand, by changing those 3 fields in a test file using
| > | the exiv2 command line utility, I found two bugs in kimdaba:
| > |
| > | 1. it seems that kimdaba looks for DateTime instead of
| > | DateTimeOriginal.
| > |    To test: clear the DateTime field in a file, kphotoalbum will not
| > |    give a
| > | date to the file
| > |
| > | 2. strange mix of date and time: set the date only (not the time) in
| > | the DateTime field: kphotoalbum will load the date from the exif
| > | field and the time from the file timestamp.
| > |
| > | marco
| >
| > --
| > Having trouble finding a given image in your collection containing
| > thousands of images?
| >
| > http://ktown.kde.org/kimdaba might be the answer.

-- 
Jesper K. Pedersen          |  Klarälvdalens Datakonsult
Senior Software Engineer    |  www.klaralvdalens-datakonsult.se
Prinsensgade 4a st.         |
9800 Hjørring               |  Platform-independent
Denmark                     |  software solutions




More information about the Kphotoalbum mailing list