Bug 212118 - Rename images: sorting based on the exif date of an image
Summary: Rename images: sorting based on the exif date of an image
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: AdvancedRename-metadata (show other bugs)
Version: unspecified
Platform: Debian testing Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-27 22:59 UTC by Martin Engelmann
Modified: 2022-01-31 21:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.9.0


Attachments
Patch implementing sorting based on meta information of the images (3.03 KB, patch)
2009-11-03 20:48 UTC, Martin Engelmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Engelmann 2009-10-27 22:59:32 UTC
Version:           0.8.0-svn r1041223 (using KDE 4.3.1)
Installed from:    Debian testing/unstable Packages

Currently the sorting criterium for the date is based on the date when the file was changed the last time. When an image is modified then the date sorting puts the modified images at the end. If the exif information is still present in the images then they could be sorted according to the time when the picture was taken.
Comment 1 Martin Engelmann 2009-11-03 20:48:15 UTC
Created attachment 38057 [details]
Patch implementing sorting based on meta information of the images

Commit message:

Batch rename images: sort images by meta date

A new command is added to sort the list of images based on the meta information
of the image. Libkexiv2 is used to extract the date from the image. If no date
is present the date provided by the KIPI host application will be used.

BUG: 212118
GUI
Comment 2 caulier.gilles 2009-11-03 22:21:19 UTC
The inverse must be done : kipi date in first, and after Kexiv2 date. in fact kipi date is generaly extracted from exif. It always more faster to checkout kipi host than to read from file metadata. In digiKam date is stored in database.

For the rest, all is fine for me. Let's go.

Gilles

Note : when you close this file, please report this entry ID and title to NEWS file. Look in project/NEWS.0.7.0 for ex.
Comment 3 Martin Engelmann 2009-11-03 22:33:53 UTC
Thank you for your comments.

When I tested it Gwenview reports the date when the file was last changed via the KIPI interface, Digikam reports the date from the exif information.

What is the intended behavior of the KIPI interface? If it is the date from the meta data perhaps there is a bug in Gwenview and is patch is needless...
Comment 4 caulier.gilles 2009-11-03 22:40:24 UTC
this depand of kipi host interface. digiKam has a big file metadata scanner which collect all main item informations from different point (metadata, filessystem)

typically, user can change date in digiKam from gui, and this can be different from file metadata (in general, all iis synchronized, but user can disable this option). This is why kipi date must be taken first.

For gwenview... i don't know...

Gilles Caulier
Comment 5 Martin Engelmann 2009-11-06 20:56:54 UTC
I had a look in the sources of gwenview and there I saw that KIPI::ImageInfo::time is not reimplemented. Therefore, the default implementation of libkipi is used. This return the date when the file was last modified.

Based on the different implementations in the host applications I think is doesn't make sense to add this patch.

Perhaps in the future the API of KIPI:ImageInfo is changed to enable differentiation between the date of the last file change and the date from the meta information.