Commit 8d1cd024 authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

Interroperability with Nikon NX : Use XMP Photoshop Urgency to save and...

Interroperability with Nikon NX : Use XMP Photoshop Urgency to save and restore Color Label properties
parent d9356c54
......@@ -476,6 +476,12 @@ int DMetadata::getImageColorLabel() const
{
QString value = getXmpTagString("Xmp.digiKam.ColorLabel", false);
if (value.isEmpty())
{
// Nikon NX use this XMP tags to store Color Labels
value = getXmpTagString("Xmp.photoshop.Urgency", false);
}
if (!value.isEmpty())
{
bool ok = false;
......@@ -771,6 +777,12 @@ bool DMetadata::setImageColorLabel(int colorId) const
{
return false;
}
// Nikon NX use this XMP tags to store Color Labels
if (!setXmpTagString("Xmp.photoshop.Urgency", QString::number(colorId)))
{
return false;
}
}
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment