Import tags from a different database
George Koulomzin
George at Koulomzin.com
Tue Nov 18 02:53:10 GMT 2025
Thomas,
It is possible to write to the DB directly (but certainly not
supported). I've been playing around with java code to massage my
groups (consisting of raw + jpg), e.g. so that they always have the same
type of image file (e.g. jpg or raw) as the leader (that's the one you
see when the group members are hidden), and to make the tags and labels
the same for the entire group.
If the tags you wish to introduce are are simple, it should not be too
difficult. If the tags are hierarchical, it is more complicated, since
you must build a virtual tag tree in the db.
Another possible approach might be to create/modify the sidecar files
with something like perl. This would lessen the risks to your db.
George
On 11/17/2025 2:59 PM, thomas.weg at abwesend.de wrote:
> Good evening,
> I have a database from another program for tagging. Unfortunately, the
> program is not running anymore but I have full access to the sqlite
> database. What is the best way to import these tags into digikam?
> Identification can be done via the file name, as this is unique. Not
> every picture is already in digikam
> - Is there a way to import csv files for this case?
> - Should the tags be written directly into the Digikam database? What
> needs to be considered here, i.e., what dependencies need to be taken
> into account sending direct sql commands?
> - Should I create xmp files from the old database and then import them
> with a dummy picture?
> Best regards,
> Thomas
--
George Koulomzin
7 Bridge Hill Lane,
PO Box 781
Bridgehampton, NY, 11932
(m) 914-393-6179
(h) 631-537-4956
George at Koulomzin.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20251117/d694e6c3/attachment-0001.htm>
More information about the Digikam-users
mailing list