Bug 405472 - Import Color Label from XMP sidecar generated by Capture One 12 and FastRaw Viewer
Summary: Import Color Label from XMP sidecar generated by Capture One 12 and FastRaw V...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Tags-Colors (show other bugs)
Version: 6.0.0
Platform: macOS (DMG) macOS
: NOR minor
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-14 16:08 UTC by clax9000
Modified: 2019-10-20 17:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.0


Attachments
XMP sidecar example file (4.93 KB, application/zip)
2019-03-14 16:08 UTC, clax9000
Details

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