> On 4 Jun 2016, at 15:33, Frank J. <[email protected]> wrote: > > Am 04.06.2016 um 12:51 schrieb Michael Hendry: >> Since acquiring my iMac in 2013 I have gradually reduced my dependence on >> legacy programs by running Windows or Ubuntu in virtual machines. >> Shotwell is the sole program I’m dependent on now, with > 20,000 images from >> various sources (film, scanner, digital camera), many with tags. >> Although Shotwell offers to record tags within the associated image files, >> it can’t do this with certain file formats - RAW and BMP for example. >> I found that if I used exiftool to create a sidecar XMP file for a given NEF >> file, including the necessary tag or tags, I could get darktable to adopt >> the tag information on import, thereby automating the process. >> I used sqlite3 running in my ubuntu virtual machine to access the shotwell >> database, extract the tag information and create a shell script to make the >> transition. > ... >> >> Michael >> > > > Hallo Michael, > I had a similar problem last year. I had spend a lot of time for tagging > pictures in Shotwell. > Then I began to use Darktable and wanted to move the tags from the > Shotwell-Database to the Darktable-Database. > > I made a python-script to do this in Darktable 1.6.9. > I reported in this mailing-list, have a look at my mail from 2015-11-28: > > http://article.gmane.org/gmane.comp.graphics.darktable.user/8392
I had downloaded a simpler script when first looking at making the transfer, and it crashed when there was a hierarchical tag involved. I think it was written by Antoine Beaupré. The information about the way in which the tags were linked to the files themselves (included in this version of shotwell2darktable.py) gave me the idea of extracting the tag and file information from the shotwell database using sqlite3 - I have some experience with SQL and none with python. Did you know that Shotwell can write tag information into your files? I had though that this would solve my emigration problem until I discovered that it wouldn’t work on RAW files, only JPG. > > The pictures must be already imported in DT and in Shotwell with the > same name and path. > It only works for Pictures that has NOT TAGS in Darktable. > Only the tagging will be moved. > > Have a closer look to hierarchical tags: > Darktable keeps all steps of the hirarchie in ONE tag. > Shotwell has one Tag for each step, getting longer step by step. > The script takes only the "deepest" tag for a picture. > > When you have imported the tags with all steps from Shotwell this may be > the reason for your problems when selecting. You’re probably right, but I have found that darktable can handle a hierarchical tag and a simple tag at the same time. For example, I have a large number of images for my local Rotary Club. At first, I tagged them all “Rotary”, but when hierarchical tags became available in Shotwell, I added “children” and “grandchildren”. I’ll have a look at the directories (= film rolls) that are causing dt to crash, and try to find anomalies in the tags. Darktable seems to have accepted the import OK, but gets into trouble when asked to display the files. > See the examples in the comments in my script. > > Get the Script from: > http://www.fotodrachen.de/download/Shotwell2Darktable.zip > > Sorry, the "ReadMe.txt" is a "LiesMich.txt" in german language. > But the comments in "shotwell2darktable_tagging.py" are written in > English, ... sometimes. > > Hope it helps. > > Frank Thanks for your prompt response to my cry for help. I hope you won’t mind if I have further questions to ask! Incidentally, are you using darktable on a Mac now, or have you simple transferred from Shotwell to darktable in a Ubuntu environment? Regards, Michael ____________________________________________________________________________ darktable user mailing list to unsubscribe send a mail to [email protected]
