Bug 405472

Summary: Import Color Label from XMP sidecar generated by Capture One 12 and FastRaw Viewer
Product: [Applications] digikam Reporter: clax9000
Component: Tags-ColorsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 6.0.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In: 6.4.0
Attachments: XMP sidecar example file

Description clax9000 2019-03-14 16:08:37 UTC
Created attachment 118805 [details]
XMP sidecar example file

Opening a folder with existing XMP sidecar files, where color label was added by other program (in my case Capture One 12 and/or FastRaw Viewer), on screen it's represented with a different one, with the exception of label "Red". Here some example :
<xmp:Label>Yellow</xmp:Label> is loaded as Color Label: Gray
<xmp:Label>Green</xmp:Label> is loaded as Color Label: Orange
<xmp:Label>Blue</xmp:Label> is loaded as Color Label: Yellow

Saving metadata to file the label are aligned on the wrong interpretation of Digicam, so if the file contain the <xmp:Label>Blue</xmp:Label>, it's replaced by the xmp:Label="Yellow" and the digiKam:ColorLabel="3" is added.

moreover for some color label like "Grey" and "Orange", the text label remain unchanged to the last value, so setting a "Yellow" label to "Orange" only 
digiKam:ColorLabel="3" change to 2

Here attached some XP sample file

Regards
Comment 1 Maik Qualmann 2019-10-20 17:50:42 UTC
Git commit e34364e508adb7a3671cd8352299b341e32d269e by Maik Qualmann.
Committed on 20/10/2019 at 17:49.
Pushed by mqualmann into branch 'master'.

Give "Xmp.xmp.Label" a higher priority than "Xmp.photoshop.Urgency"
FIXED-IN: 6.4.0

M  +2    -1    NEWS
M  +7    -8    core/libs/metadataengine/dmetadata/dmetadata_labels.cpp

https://invent.kde.org/kde/digikam/commit/e34364e508adb7a3671cd8352299b341e32d269e
Comment 2 Maik Qualmann 2019-10-20 17:52:02 UTC
The second problem was fixed by Bug 412922.

Maik