[digiKam-users] Hierarchical keywords and tags
Gilles Caulier
caulier.gilles at gmail.com
Wed Mar 30 10:11:34 BST 2022
Hi,
IPTC supports keywords, not hierarchical tags as digiKam do (as
treeview). You must use XMP instead.
digiKam use a dedicated XMP namespace for that :
https://exiftool.org/TagNames/XMP.html#digiKam
Look TagsList Which is a strings list of hierarchy using '/' as a
separator (as a file tree hierarchy in fact). But digiKam support
other place in XMp for interoperability purpose. Example :
[gilles at localhost]$ exiftool -xmp:* 4324477432.jpg
XMP Toolkit : XMP Core 4.4.0-Exiv2
Categories : <Categories><Category
Assigned="1">lieux<Category Assigned="1">Islande<Category Assigned=
"1">Reykjavik, lieux<Category Assigned="1">Islande, Mot
clé</Category></Category></Category></Category><Category Assigned="
0">Personnes<Category Assigned="1">Ignored</Category><Category
Assigned="1">Unconfirmed</Category></Category><Category Assi
gned="1">Maison</Category></Categories>
Region Applied To Dimensions W : 4032
Region Applied To Dimensions H : 3024
Region Applied To Dimensions Unit: pixel
Region List :
Region Person Display Name : Ignored, Unconfirmed
Tags List : lieux/Islande, lieux,
Personnes/Unconfirmed, lieux/Islande/Reykjavik, lieux, Personnes/Ig
nored, Maison, lieux/Islande/Reykjavik, lieux/Islande, Mot clé
Last Keyword XMP : lieux/Islande, lieux,
Personnes/Unconfirmed, lieux/Islande/Reykjavik, lieux, Personnes/Ig
nored, Maison, lieux/Islande/Reykjavik, lieux/Islande, Mot clé
Hierarchical Subject : lieux|Islande, lieux,
Personnes|Unconfirmed, lieux|Islande|Reykjavik, lieux, Personnes|Ig
nored, Maison, lieux|Islande|Reykjavik, lieux|Islande, Mot clé
Catalog Sets : lieux|Islande, lieux,
Personnes|Unconfirmed, lieux|Islande|Reykjavik, lieux, Personnes|Ig
nored, Maison, lieux|Islande|Reykjavik, lieux|Islande, Mot clé
Subject : Islande, lieux, Unconfirmed,
Reykjavik, lieux, Ignored, Maison, Islande, Mot clé
Look also at the advanced settings to import tags from metadata in the
Setup/Metadata dialog page.
To respond to your question about IPTC edit, look in the menu
"Item/Edit Metadata". But as I said previously, IPTC does not support
hierarchy. Look the same picture with IPTCwhere keywords is just a
flat list of tags hierarchy :
[gilles at localhost]$ exiftool -iptc:* 4324477432.jpg
Coded Character Set : UTF8
Keywords : Islande, lieux, Unconfirmed,
Reykjavik, lieux, Ignored, Maison, Islande, Mot clé
Best
Gilles Caulier
Le mer. 30 mars 2022 à 04:31, Mikkel Houmøller <kluddermikkel at pm.me> a écrit :
>
> I have just started using digiKam and is still trying to get a grip on using tags and metadata. My images already had hierarchical keywords in their metadata and mostly digiKam added this to a hierarchical list of tags the way I expected. However in some cases the hierarchical keywords are interpreted by digiKam as just one (long) tag. Not sure why and it would not be a big deal if I could just edit or delete these keywords in the metadata.
>
> However this is my problem: I can't seem to find a way to edit those keywords in the metadata. From what I can see they are in the IPTC part of the metadata. Is it not possible to edit this? It seems to be in the editor but when I do edits they don't save.
> Using the tags in digiKam I can of course delete the tags in question or merge them. However when I do this it also doesn't look like the tag corrections are actually corrected in the IPTC keywords in the image metadata? I would like it to be so that I don't have to do this work all over if and when I ever need to add the images to a new digiKam installation.
> I have looked in the Recipes Book but have not found anything regarding this particular problem.
>
> Thanks,
> Mikkel
More information about the Digikam-users
mailing list