Bug 453249 - Face regions get lost when the file is renamed
Summary: Face regions get lost when the file is renamed
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Faces (show other bugs)
Version: 7.6.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-01 05:03 UTC by Jared Van Leeuwen
Modified: 2022-05-01 12:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.7.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Van Leeuwen 2022-05-01 05:03:55 UTC
SUMMARY
Face regions are lost when the file is renamed. I suspect that the face region isn't stored in the metadata of the file itself (which I was really hoping that it would be). I'm glad that the people tag still exists for the picture, but if some grand child is looking at the picture decades from now, it would be good if whatever software they're using can point out who is who in the picture.


STEPS TO REPRODUCE
1. Add a face tag to a picture.
2. Close digiKam
3. Rename picture
4. Reopen digiKam
5. Look for faces in renamed picture

OBSERVED RESULT
No faces are found

EXPECTED RESULT
The faces which were just tagged are still visible.

SOFTWARE/OS VERSIONS
Windows: 11

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2022-05-01 05:24:31 UTC
First you should also enable writing of facel regions/metadata in the digiKam settings under Metadata. It is also recommended to do the renaming with digiKam.

Maik
Comment 2 Maik Qualmann 2022-05-01 05:37:01 UTC
The name of the image is a criterion for locating an externally moved image and for reassigning the corresponding DB metadata. It would be for us to consider whether we remove the name as a criterion (possibly also the modification date) and limit ourselves to file size and a unique hash.
But your main problem is that you don't write any metadata in the image.

Maik
Comment 3 Maik Qualmann 2022-05-01 12:35:31 UTC
Git commit 4ea734d1978c009c7462a41c4bb54cb5b164bcc6 by Maik Qualmann.
Committed on 01/05/2022 at 12:34.
Pushed by mqualmann into branch 'qt5-maintenance'.

prefer item found in the same album
FIXED-IN: 7.7.0

M  +2    -1    NEWS
M  +16   -2    core/libs/database/item/scanner/itemscanner_file.cpp

https://invent.kde.org/graphics/digikam/commit/4ea734d1978c009c7462a41c4bb54cb5b164bcc6