Bug 435843

Summary: Metadata changes not saved when removing face region
Product: [Applications] digikam Reporter: MarcP <iwannaberich>
Component: Metadata-XmpAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: iwannaberich
Priority: NOR    
Version First Reported In: 7.3.0   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 7.3.0
Sentry Crash Report:

Description MarcP 2021-04-17 12:28:06 UTC
SUMMARY

I noticed that when I remove an existing face from a picture, the metadata is not saved, so if I re-read that metadata again, the face reappears.

I have to manually Write metadata to file to save the changes.

My configuration is set to all metadata is written to the picture files themselves.

STEPS TO REPRODUCE
1. Delete face region from picture
2. Item/Re-read metadata from file

OBSERVED RESULT
The face region reappears in the picture.

EXPECTED RESULT
Nothing. The picture should stay as it is.

SOFTWARE/OS VERSIONS
Digikam 7.3.0 

Build date: 13/4/21 10:27 (target: Debug)
Rev.: b4b998677390adb557861a01b748f70b1366175c
Comment 1 Maik Qualmann 2021-04-17 15:51:57 UTC
Git commit b1243d73e5fd59f4336a3b1d228bf2c2cbc5b68d by Maik Qualmann.
Committed on 17/04/2021 at 15:50.
Pushed by mqualmann into branch 'master'.

remove all faces when the faces map is empty
FIXED-IN: 7.3.0

M  +2    -1    NEWS
M  +1    -1    core/libs/metadataengine/dmetadata/dmetadata.h
M  +4    -2    core/libs/metadataengine/dmetadata/dmetadata_faces.cpp

https://invent.kde.org/graphics/digikam/commit/b1243d73e5fd59f4336a3b1d228bf2c2cbc5b68d