Re: Import from disk and auto-tag



Warren Baird wrote:
Dotan - I assume you are working with current CVS head. I'll grab Bengt's patch now, and see if I can get a version of it that applies cleanly against current CVS.

I took a closer look, and my original patch applies fine --- I think Bengt is right, it's probably easier to just work with my patch...

I also figured out how to import a comment. My patch takes the photoshop "Headline" tag and puts it in the comment field. to do this, you should add the photoshop namespace by adding the string

     xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/";

to your xmpmeta line, and then adding

   <photoshop:Headline>This is my commment</photoshop:Headline>
inside your <rdf:Description> field. Here's a fully populated chunk as an example:

<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/' xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/";>
  <rdf:Description>
<photoshop:Headline>This is where the Saskatchwan River forks in the north and south Saskatchwan rivers.</photoshop:Headline>
    <dc:subject>
      <rdf:Bag>
          <rdf:li></rdf:li>
          <rdf:li>The Forks</rdf:li>
          <rdf:li>sask</rdf:li>
          <rdf:li>2005</rdf:li>
          <rdf:li>Travel</rdf:li>
          <rdf:li>Great</rdf:li>
      </rdf:Bag>
    </dc:subject>
  </rdf:Description>
</rdf:RDF>


Hope this helps!

Warren





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