tag hierarchy is a mess! how to fix it?

Hi all… I’m running DigiKam v9.1. Somehow I made a mess of parts of my tag hierarchy. For example, I have things like: Who->Famiy->person_name. This person will be in the right place in the tree. The same “person” (as a different tag but with the same name) will also appear somewhere else in the tree. I can drag this down and merge with the existing proper tag. Sometimes it sticks. Sometimes it doesn’t.

Is there a way in DigiKam to export the tag tree as a file, clean it up and import back into DigiKam replacing the current hierarchy? I can deal with needing to re-tags photos. First I need to clean up the mess.

If you point the way, I will appreciate it! Thanks!!

Welcome @bbill

yes, the tags manager can export tags as a text file.
Hierarchy is shown as one tab for each level.

Thanks, I didn’t know that. I can’t find a way though to re-import an edited tags text file. Any ideas?

I saw this. Can I edit this file, import it back in and it will become the new keywords list? Or will it be added to what is already there, resulting in a bigger mess? If the latter is what will happen, can I clear out all old keywords and then import the new list?

There is an import option in the tag manager. The docs are unclear if this replaces the existing tags or adds to them.

Hmm, I exported the tags file, changed the tag “test” to “test123”, saved that file, imported it in digikam, but test has not changed to test123, not even after a restart of digikam.

Hi,
I’ve never done that before. If I were to try it, I’d create a new database with a few keywords to export and then reimport after making changes to the file.

1 Like