Re: Import tags from a different database
George Koulomzin <[email protected]>
| Newsgroups | gmane.comp.kde.digikam.user |
|---|---|
| Message-ID | <[email protected]> |
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, [email protected] 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 [email protected]