Bug 443393 - Full Path for Tags not saved to image
Summary: Full Path for Tags not saved to image
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Tags-Manager (show other bugs)
Version: 7.3.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-06 12:51 UTC by Dave Taylor
Modified: 2022-01-02 10:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0
Sentry Crash Report:


Attachments
Image 1 Original (16.57 KB, image/jpeg)
2021-10-06 17:17 UTC, Dave Taylor
Details
Image 2 Digicam Tag Manager (18.09 KB, image/jpeg)
2021-10-06 17:19 UTC, Dave Taylor
Details
Image 3 Digicam Picture Properties (51.57 KB, image/jpeg)
2021-10-06 17:20 UTC, Dave Taylor
Details
Image 4 Windows properties after Tagged by digicam (15.16 KB, image/jpeg)
2021-10-06 17:22 UTC, Dave Taylor
Details
AdvMetadata.png (166.05 KB, image/png)
2021-10-06 21:20 UTC, Maik Qualmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Taylor 2021-10-06 12:51:29 UTC
SUMMARY

I have been using Windows Photo Gallery, purely because of tagging. I have a tagged image where the tag = Animals/Dogs/Fido.

Although DigiKam shows the correct full path in the Tag manager, if I add that same tag to another image then just the last part gets added to that image i.e. "Fido".


STEPS TO REPRODUCE
1. Open a photo that has a tag with full path i.e Animals/Dogs/Fido
2. Copy that tag to a un-tagged image
3. 

OBSERVED RESULT
New image tag = Fido


EXPECTED RESULT
New image tag should = Animals/Dogs/Fido

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

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2021-10-06 14:01:12 UTC
*** Bug 443394 has been marked as a duplicate of this bug. ***
Comment 2 Maik Qualmann 2021-10-06 14:28:21 UTC
The tag path is of course saved in by digiKam. It depends on which metadata you want to use in the image. The full tag path is saved in:

XMP-acdsee-categories
XMP-lr-HierarchicalSubject
XMP-digiKam-TagsList
XMP-MicrosoftPhoto-LastKeywordXMP
XMP-medipro-CatalogSets

There are some metadata in which only the last keyword is saved by standard.
You have to report in more detail how you come to the conclusion that digiKam is doing something wrong. 

Maik
Comment 3 Maik Qualmann 2021-10-06 14:44:07 UTC
One more note about the tags in the thumbnail, only the last keyword is shown here for reasons of space. In the right sidebar in the Properties tab or if you activate the tooltips in the setup above the thumbnail, you can see the full path. 

Maik
Comment 4 Dave Taylor 2021-10-06 17:17:53 UTC
Created attachment 142214 [details]
Image 1 Original

Windows Properties showing path Animals/Dog/Fido
Comment 5 Dave Taylor 2021-10-06 17:19:48 UTC
Created attachment 142215 [details]
Image 2 Digicam Tag Manager

Screen showing Digicam tag manager has read the full path, with Fido Ticked
Comment 6 Dave Taylor 2021-10-06 17:20:56 UTC
Created attachment 142216 [details]
Image 3 Digicam Picture Properties

Proof that Digicam knows the full path
Comment 7 Dave Taylor 2021-10-06 17:22:45 UTC
Created attachment 142217 [details]
Image 4 Windows properties after Tagged by digicam

This image show the properties of the photo after it has been tagged by digicam
As you can see just the last part is written
Comment 8 Dave Taylor 2021-10-06 17:24:39 UTC
I have taken some screenshots of what is happening.

As you can see only the last part of the tag is written to the actual photo "Fido"
Comment 9 Maik Qualmann 2021-10-06 21:20:42 UTC
Created attachment 142225 [details]
AdvMetadata.png

Well, Windows stores a tags path in Xmp.dc.subject. One can argue about it, because the standard does not really provide for it. However, you can set up digiKam in the advanced metadata settings so that it is compatible with Windows. See the screenshot.

1. Deactivate the default entry
2. Create a new Xmp.dc.subject entry as in the screenshot.

Maik
Comment 10 Dave Taylor 2021-10-06 22:38:52 UTC
Brilliant, thank you so much.
Comment 11 Dave Taylor 2021-10-07 10:01:20 UTC
I raised this on the forum, are you happy for me to post your resolution for others?