Re: Import from disk and auto-tag

Mark Howard wrote:

I have a large collection of photos organised on disk by directory
structure. I would like f-spot to import these and automatically tag
each photo based on the directory that it's in. There doesn't seem to
be any gui tool for this (without specifying each directory and tag
separately, which is not an option for such a large collection). Is
there any other way to do this? Perhaps some (hidden) way of
specifying a tag when using f-spot --import <uri>, so that I could
write a simple script to do it?

There's no mechanism to do this automatically - however, there are some patches for bug that will make this relatively easy --- the patch I submitted against the bug will take simple xmp-like "sidecar" files at import and create tags for them.

Basically you need to write a script that creates for every file foo.jpg, a file called foo.jpg.xmp - the contents should look like this:

<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='XMP toolkit 3.0-28, framework 1.6'><rdf:RDF xmlns:rdf='' xmlns:iX='' xmlns:dc=''>
          <rdf:li>Tag 1</rdf:li>
          <rdf:li>Tag 2</rdf:li>
          <rdf:li>Tag N</rdf:li>

Then with my patch, when you do the import, the tags will be created (if necessary), and attached to each photo appropriately.

Hope this helps.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]