Bug 286165

Summary: Tag hierarchy not preserved when exporting metadata to IPTC
Product: [Applications] digikam Reporter: swami.kevala
Component: Metadata-IptcAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 1.9.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 2.4.0
Sentry Crash Report:
Attachments: digiKam XMP namespace including Tags Hierarchies

Description swami.kevala 2011-11-09 09:03:23 UTC
Version:           1.9.0
OS:                Linux

After tagging my images with a two-level tag (e.g. Family/John), I run the  Tools -> 'write metadata to all images' function. (Under the Configure/Metadata/Common Metadata Actions settings I have checked "Save image tags as "Keywords" tags in metadata embedded in files")

Now when I go to Image -> Metadata -> Edit IPTC, I notice that it has stored two separate keywords, "Family" and "John", side by side. This is not what I want. I want it to store a single keyword "Family.John" or "Family/John".

And when I read the metadata back from the images, I want the tag hierarchy to be recreated.

Reproducible: Always

Steps to Reproduce:
As above

Actual Results:  
As above

Expected Results:  
As above
Comment 1 caulier.gilles 2011-11-09 09:09:30 UTC
Tag hierarchies are preserved in XMP metadata, through digiKam namespace.

IPTC is limited as tags size and Characters encoding. XMP is not limited.

digiKam use XMP in first to recreate tag hierarchies from images to DB.

Also, use 2.x serie instead unmaintained 1.x. 2.3.0 is just released...

Gilles Caulier
Comment 2 swami.kevala 2011-11-12 11:39:36 UTC
I have just changed to Ubuntu 11.10 (which includes digikam v2.1.1). The
tag hierarchy still doesn't appear to be getting preserved in the XMP
metadata. Was this fixed in a later version?


On 9 November 2011 14:39, Gilles Caulier <caulier.gilles@gmail.com> wrote:

> https://bugs.kde.org/show_bug.cgi?id=286165
>
>
> Gilles Caulier <caulier.gilles@gmail.com> changed:
>
>           What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>             Status|UNCONFIRMED                 |RESOLVED
>          Component|Tags                        |Metadata
>         Resolution|                            |WONTFIX
>
>
>
>
> --- Comment #1 from Gilles Caulier <caulier gilles gmail com>  2011-11-09
> 09:09:30 ---
> Tag hierarchies are preserved in XMP metadata, through digiKam namespace.
>
> IPTC is limited as tags size and Characters encoding. XMP is not limited.
>
> digiKam use XMP in first to recreate tag hierarchies from images to DB.
>
> Also, use 2.x serie instead unmaintained 1.x. 2.3.0 is just released...
>
> Gilles Caulier
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>
Comment 3 caulier.gilles 2011-11-12 12:46:01 UTC
It support XMP since 1.x release.

Do you turn metadata writting in images through digiKam configuration dialog ?

Gilles Caulier
Comment 4 caulier.gilles 2011-11-12 12:53:52 UTC
Created attachment 65550 [details]
digiKam XMP namespace including Tags Hierarchies

It's clear now with this screenshot ?

Gilles Caulier
Comment 5 swami.kevala 2011-11-12 13:36:32 UTC
its getting written to the xmp, but hierarchy not getting stored, only
flat list of tags

On 12/11/2011, Gilles Caulier <caulier.gilles@gmail.com> wrote:
> https://bugs.kde.org/show_bug.cgi?id=286165
>
>
>
>
>
> --- Comment #4 from Gilles Caulier <caulier gilles gmail com>  2011-11-12
> 12:53:52 ---
> Created an attachment (id=65550)
>  --> (http://bugs.kde.org/attachment.cgi?id=65550)
> digiKam XMP namespace including Tags Hierarchies
>
> It's clear now with this screenshot ?
>
> Gilles Caulier
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>
Comment 6 caulier.gilles 2011-11-12 13:42:16 UTC
File name: DSC02978_v1.PNG (XMP Schema)

>>> digiKam schema <<<

Color Label : 0
Image History : <?xml version="1.0"?> <history version="1"> <file uuid="51af9e520bba771f2ed02bdf28fb15beeef7e913b4476718b66b8eaf69942386" type="original"> <fileParams fileName="DSC02978.JPG" filePath="/mnt/data2/photos/Sur Aix/" fileHash="eef7e913b4476718b66b8eaf69942386" fileSize="4389900" creationDate="2011-11-11T18:29:43"/> </file> <filter filterName="digikam:LocalContrastFilter" filterDisplayName="Local Contrast Filter" filterVersion="1" filterCategory="reproducible" branch="true"> <params> <param name="function_id" va...
ImageUniqueID : 781a3a0944ac1e072d8ed91b43539b2eeef7e913b4476718b66b8eaf69942386
PickLabel : 0
Tags List : Pays, Pays/France, Pays/France/Provence

Really !!! 

==>  Pays/France/Provence ==> the hierarchy is here !

Look screenshot in details, especially items selected in tags tree-view...

Gilles Caulier