Bug 412922 - xmp:Label not created/changed if color label is none/orange/grey/black/white
Summary: xmp:Label not created/changed if color label is none/orange/grey/black/white
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Xmp (show other bugs)
Version: 6.4.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-13 20:00 UTC by flolilo
Modified: 2022-01-07 05:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description flolilo 2019-10-13 20:00:33 UTC
SUMMARY
XMP sidecars are created without xmp:Label. You can create it by using a color label in the set of (red, yellow, blue, green, purple). Both xmp:Label and digiKam:ColorLabel get changed when changing the color label in DigiKam (xmp:Label only for the above mentioned set), however, for all other values (none, orange, grey, black, white), the value does not get created and/or updated, even if it already exists.

STEPS TO REPRODUCE
1. Open DigiKam
2. Import picture(s)
3. Write metadata for that picture in DigiKam
4. Check picture's sidecar file in text editor, see that there is no 'xmp:Label'
5. In DigiKam, change color label to "red", write metadata
6. Check picture's sidecar file in text editor, see that there now is 'xmp:Label="RED"'
7. In DigiKam, change color label to "none", write metadata
8. See 6.

OBSERVED RESULT
xmp:label gets changed only for red, yellow, blue, green, purple
xmp:label does not get changed for none, orange, grey, black, white

EXPECTED RESULT
xmp:label gets changed for all colors (maybe "interpolate" for non-standard colors?)

SOFTWARE/OS VERSIONS
Windows: Win10 v1803, latest updates
KDE Frameworks Version: 5.61.0
Qt Version: 5.13.1
DigiKam: digiKam-6.4.0-git-20191010T155337

ADDITIONAL INFORMATION
None.
Comment 1 Maik Qualmann 2019-10-13 20:27:07 UTC
The tag xmp:Label is for LightRoom. And LightRoom only supports the colors: Blue, Green, Red, Yellow and Purple. Ok, if the color code does not fit, we will remove the tag.

Maik
Comment 2 Maik Qualmann 2019-10-13 20:36:29 UTC
Git commit 8eef4d33da31b4314116b3f4b5f7150faafc57fb by Maik Qualmann.
Committed on 13/10/2019 at 20:35.
Pushed by mqualmann into branch 'master'.

remove Xmp.xmp.Label if color not exist
FIXED-IN: 6.4.0

M  +2    -1    NEWS
M  +4    -0    core/libs/metadataengine/dmetadata/dmetadata_labels.cpp

https://invent.kde.org/kde/digikam/commit/8eef4d33da31b4314116b3f4b5f7150faafc57fb