[Digikam-devel] [digikam] [Bug 341772] Re-read metadata when image file timestamp has changed
Kristian Karl
kristian.hermann.karl at gmail.com
Sun Mar 29 11:53:32 BST 2015
https://bugs.kde.org/show_bug.cgi?id=341772
--- Comment #5 from Kristian Karl <kristian.hermann.karl at gmail.com> ---
Created attachment 91802
--> https://bugs.kde.org/attachment.cgi?id=91802&action=edit
Patch with proposed fix and unit test
I realized that Digikam already detectes a change in an image file, using
either file size and/or date time modification.
However, in CollectionScanner, scanModifiedFile(fi, scanInfo) is used to
re-scan the file. That does not re-read metadata changes.
I tested using rescanFile(fi, scanInfo) instead, and that worked much better.
See:
https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/libs/database/collectionscanner.cpp#L1202
The patch contains the proposed change, and a unit test to verify that metadata
changes 'outside' digikam is detected and re-read into the database.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Digikam-devel
mailing list