Bug 467560

Summary: Keywords assigned by Synology Photos is written in XMP metadata but not recognized by digiKam.
Product: [Applications] digikam Reporter: malte.boensch
Component: Tags-KeywordsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, dion, metzpinguin
Priority: NOR    
Version First Reported In: 8.6.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 8.9.0
Sentry Crash Report:
Attachments: screenshot
photo-favorit-keyword-not-detected
advanced settings
Screenshot from Synology Pictures - Photo with Tag "Barcelona"
Screenshot from Irfan View with IPCT meta data including newly added tag
original pictures with tag "Barcelona" added in Synology Photos
screenshot from DigiKam with the recognized Tag "Barcelona"

Description malte.boensch 2023-03-19 07:57:09 UTC
Created attachment 157410 [details]
screenshot

SUMMARY


STEPS TO REPRODUCE
1. Tag an image in Synology Photos with an existing keyword (in this case "Favorit")
2. Load digikam and the image that was tagged in Synology Photos

OBSERVED RESULT
The tag is in fact written in the metadata. It is visible in the XMP "Dublin Core - XMP-dc" section. (see attached image).
However, the newly added tag is not "recognized" by Digikam.
Interestingly: I tested this with a different image that did not have any previous XMP tags (e.g. face/person tags). In this case Digikam recognized the same tag after applying it in synology photos. However, in this example there are two face tags already existing, when the new tag "Favorit" is added.


EXPECTED RESULT


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

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2023-03-19 08:03:39 UTC
Please provide a file sample to test here.
Comment 2 Maik Qualmann 2023-03-19 08:37:57 UTC
digiKam searches for tags from a list defined in the advanced metadata settings. Go to the advanced metadata settings and move Xmp.dc.subject to the top of the keywords list.

Maik
Comment 3 malte.boensch 2023-03-19 08:48:47 UTC
Created attachment 157412 [details]
photo-favorit-keyword-not-detected
Comment 4 malte.boensch 2023-03-19 08:48:59 UTC
(In reply to caulier.gilles from comment #1)
> Please provide a file sample to test here.

done
Comment 5 Maik Qualmann 2023-03-19 08:55:12 UTC
As described in Comment 2, it would be the solution or alternatively you can also activate in the advanced metadata that all possible keyword tags are read. Basically, more of a bug report on Synology Photos is that they don't update all possible keyword metadata when they exist.

Maik
Comment 6 caulier.gilles 2023-03-19 09:08:32 UTC
See also this section from the online doc:

https://docs.digikam.org/en/setup_application/metadata_settings.html#advanced-settings

Gilles Caulier
Comment 7 malte.boensch 2023-03-19 09:19:00 UTC
Created attachment 157413 [details]
advanced settings
Comment 8 malte.boensch 2023-03-19 09:20:10 UTC
(In reply to Maik Qualmann from comment #5)
> As described in Comment 2, it would be the solution or alternatively you can
> also activate in the advanced metadata that all possible keyword tags are
> read. Basically, more of a bug report on Synology Photos is that they don't
> update all possible keyword metadata when they exist.
> 
> Maik

Are these the settings you are referring to? I attached new picture digikam_5
Comment 9 Maik Qualmann 2023-03-19 09:50:33 UTC
Yes, either select Xmp.dc.subject and move it to the first position in the list with the "Nach oben" tool button. Whether you want to enable reading of all possible metadata for keywords depends on the state of your metadata in the images, whether many keywords in other metadata fields are perhaps "outdated" and you don't want to import them at all.

Maik
Comment 10 Maik Qualmann 2023-03-19 10:07:03 UTC
To make it clear again. The list is processed from top to bottom, if there is content, it is aborted and the values found are used. As you can see, in the default setting, Xmp.dc.subject has a lower status because it only supports keywords without a path by default.

Maik
Comment 11 caulier.gilles 2023-05-03 12:11:09 UTC
@malte.boensch@web.de

With 8.0.0, we also introduced a configuration profile load/save for the Metadata advanced settings configuration page. Look the online documentation for details:

https://docs.digikam.org/fr/setup_application/metadata_settings.html#advanced-settings

You can create a new profile for the synology NAS and share the config file in the room to includes it with next release.

Best regards

Gilles Caulier
Comment 12 caulier.gilles 2023-05-20 21:54:47 UTC
@malte.boensch@web.de

did you seen my previous comment ?

Gilles Caulier
Comment 13 caulier.gilles 2023-10-15 03:54:57 UTC
@malte.boensch@web.de,

This problem still reproducible with the new digiKam 8.2.0 pre-release Windows
installer available at usual place:

https://files.kde.org/digikam/

This new bundle is based on last Qt framework 5.15.11 and KDE framework 5.110.

Thanks in advance

Gilles Caulier
Comment 14 caulier.gilles 2025-04-11 18:13:56 UTC
Hi,

The 8.7.0 pre-release Windows installer from today have been rebuilt from
scratch with Qt 6.8.3, KDE 6.12, OpenCV 4.11 + CUDA support, Exiv2 0.28.5, ExifTool 13.27, ffmpeg 7, all image codecs updated to last version (jxl, avif, heif, aom, etc.).

Please try with this version to see if your problem still reproducible...

https://files.kde.org/digikam/

Thanks in advance
Best regards

Gilles Caulier
Comment 15 malte.boensch 2025-05-18 08:35:10 UTC
Yes, the problem is still reproducable with the latest version.
Comment 16 Maik Qualmann 2025-05-18 08:42:33 UTC
No, I don't think digiKam isn't importing xmp.dc.subject. Please send another test image.

Maik
Comment 17 malte.boensch 2025-09-25 18:27:59 UTC
Created attachment 185274 [details]
Screenshot from Synology Pictures - Photo with Tag "Barcelona"
Comment 18 malte.boensch 2025-09-25 18:31:36 UTC
Created attachment 185276 [details]
Screenshot from Irfan View with IPCT meta data including newly added tag
Comment 19 malte.boensch 2025-09-25 18:33:16 UTC
Created attachment 185277 [details]
original pictures with tag "Barcelona" added in Synology Photos
Comment 20 malte.boensch 2025-09-25 18:34:31 UTC
After going through this workflow 
1. Tag an image in Synology Photos with an existing keyword (in this case "Barcelona")
2. Load digikam and the image that was tagged in Synology Photos

--> I can observe that the tag is now visible in digiKam!
So this is issue is solved.
Comment 21 malte.boensch 2025-09-25 18:36:35 UTC
Created attachment 185278 [details]
screenshot from DigiKam with the recognized Tag "Barcelona"