Aw: Re: Import tags from a different database

[email protected] Thu, 11 Dec 2025 10:54:37 +0000
Newsgroups gmane.comp.kde.digikam.user
Message-ID <trinity-c1bb8aaf-0fcc-4a82-a1ff-e88053978bea-1765450477221@trinity-msg-rest-gmx-gmx-live-5bb597646f-s9nps>
Exactly. I have an old database from another programme and have created XMP files from it. I can use these XMP files for images that I don't yet have in Digikam without any problems. Unfortunately, some images need to be merged regarding the keywords. When I import a XMP file created from the old database into Digikam, the data in Digikam is overwritten. (At least, this is the case with the current process when I import XMP files into Digikam). I would like to know if it is possible to import XMP files without overwriting the internal Digikam tag data.

It would definitely be technically feasible to write an XMP file from Digikam, identify the correct matches and add the tags from the old database. However, it would take me much longer than if I could import the old tags from the other programme into Digikam next to the existing ones and clean up the tags directly in Digikam.

Best regards,

Thomas

Gesendet: Donnerstag, 11. Dezember 2025 um 08:53

Von: "Remco Viëtor" <[email protected]>

An: [email protected]

Betreff: Re: Import tags from a different database

On jeudi 11 décembre 2025 06:58:57 heure normale d’Europe centrale Manuel Bock
wrote:
> Just take a dummy picture, tag it with all the tags you want to import and
> then import this picture into the new digikam collection.
>

That could work to transfer a keyword tree.

BUT: OP has images tagged with another (defunct) program and wants to transfer
the images *with their tags* to digikam. But the tags are only in an SQLite
database.

A solution would be to read the old database and create or update a sidecar
file. For that, OP would have to be familiar with SQLite (to read the tags)
and XML/XMP (to create/update sidecar files). Note that existing sidecars
should NOT be overwritten, just added to (unhandled XML tags should be
conserved). Digikam can then read the new and the updated sidecars.