Bug 421693 - Digikam only read xmp:Label during first import then prioritizes its digiKam:ColorLabel over the xmp:Label.
Summary: Digikam only read xmp:Label during first import then prioritizes its digiKam:...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Xmp (show other bugs)
Version: 6.4.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-17 21:05 UTC by erre
Modified: 2020-05-18 19:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.0.0


Attachments
Metadata Section Digikam (29.06 KB, image/png)
2020-05-17 21:05 UTC, erre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description erre 2020-05-17 21:05:11 UTC
Created attachment 128555 [details]
Metadata Section Digikam

SUMMARY


STEPS TO REPRODUCE
1. Import some pictures with color label Red applied in xmp:Label
2. Change color label in Digikam to Blue that will write xmp:Label: Blue in xmp
3. Open picture in Capture one that will read that xmp:Label Blue correctly and change the color label again to Green and it will write xmp:Label: Green
4. Open picture again in Digikam.

OBSERVED RESULT

Digikam won't pick up that last change of color label in Capture One or any program that writes xmp:Label.

EXPECTED RESULT

Digikam should read that label again just in case was changed in another program.

The thing is that Digikam in the metadata section the xmp:Label reads correctly but Digikam (I guess) prioritize its digiKam:ColorLabel over the xmp:Label.


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

ADDITIONAL INFORMATION

On the screenshot we can see that Basic Scheme reads Label Blue and Digikam Scheme reads Label 6 (which is purple if I'm not mistaken)
Comment 1 erre 2020-05-17 21:36:01 UTC
exiftool -r -digiKam:ColorLabel=

This fixes the problem, of course. Quit Digikam, run that command (basically remove the digikam:ColorLabel from xmp) and then reopen Digikam, xmp:Label is read again.
Comment 2 Maik Qualmann 2020-05-18 04:15:00 UTC

*** This bug has been marked as a duplicate of bug 418806 ***
Comment 3 Maik Qualmann 2020-05-18 19:19:56 UTC
Git commit 2da18137862bf6daa72a4cdc8ac6540ac2de1b37 by Maik Qualmann.
Committed on 18/05/2020 at 19:17.
Pushed by mqualmann into branch 'master'.

add basic support for color label in the advanced metadata settings
TODO: Add dialog for converting color label values.
Related: bug 418806
FIXED-IN: 7.0.0

M  +3    -1    NEWS
M  +3    -2    core/libs/metadataengine/dmetadata/dmetadata.h
M  +134  -57   core/libs/metadataengine/dmetadata/dmetadata_labels.cpp
M  +38   -0    core/libs/metadataengine/dmetadata/dmetadatasettingscontainer.cpp
M  +7    -3    core/libs/metadataengine/dmetadata/dmetadatasettingscontainer.h
M  +4    -0    core/utilities/setup/metadata/advancedmetadatatab.cpp
M  +13   -0    core/utilities/setup/metadata/namespaceeditdlg.cpp

https://invent.kde.org/graphics/digikam/commit/2da18137862bf6daa72a4cdc8ac6540ac2de1b37