Bug 435340

Summary: Writing empty region lists
Product: [Applications] digikam Reporter: herb <herb.k>
Component: Metadata-XmpAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version First Reported In: 7.2.0   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In: 7.3.0
Sentry Crash Report:

Description herb 2021-04-04 09:35:42 UTC
SUMMARY
To an image without any XMP-metadata (in my case a *.jpg image) I assigned a color (purple in my case) and then I performed "Write metadata into file".

A check with Exiftool showed which tags had been created:
(1) because of assigned color and because of settings
- xmp-digikam:Colorlabel
- xmp-xmp:label
- xmp-photoshop:urgency
(2) because of non existing regions, but settings: regions should be written to file:
- xmp-mwg-rs:region-info (as empty list)
- xmp-mp:regioninfomp (as empty list)

And all empty region-lists lists are well formed.
For me the fault is, that empty lists are created.

Best regards
herb


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2021-04-04 09:54:19 UTC
Git commit a2a0a9bbe71701c9e1dcd2640dbd68c98376abec by Maik Qualmann.
Committed on 04/04/2021 at 09:53.
Pushed by mqualmann into branch 'master'.

fix write empty region lists
FIXED-IN: 7.3.0

M  +1    -1    NEWS
M  +5    -0    core/libs/metadataengine/dmetadata/dmetadata_faces.cpp

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