Bug 435340 - Writing empty region lists
Summary: Writing empty region lists
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Xmp (show other bugs)
Version: 7.2.0
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-04 09:35 UTC by herb
Modified: 2021-04-04 09:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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