Re: Import from disk and auto-tag
- From: Warren Baird <photogeekmtl gmail com>
- To: F-Spot list <f-spot-list gnome org>
- Subject: Re: Import from disk and auto-tag
- Date: Sat, 24 Jun 2006 10:44:10 -0400
Mark Howard wrote:
Hi,
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 http://bugzilla.gnome.org/show_bug.cgi?id=342137 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='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
xmlns:iX='http://ns.adobe.com/iX/1.0/'
xmlns:dc='http://purl.org/dc/elements/1.1/'>
<rdf:Description>
<dc:subject>
<rdf:Bag>
<rdf:li>Tag 1</rdf:li>
<rdf:li>Tag 2</rdf:li>
<rdf:li>...</rdf:li>
<rdf:li>Tag N</rdf:li>
</rdf:Bag>
</dc:subject>
</rdf:Description>
</rdf:RDF>
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.
Warren
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]