Author Topic: xmp file contents  (Read 4083 times)

Offline Bob M

  • Full Member
  • ***
  • Posts: 143
    • View Profile
    • The McElroys of Point Alexander
xmp file contents
« on: March 13, 2010, 09:56:00 AM »
One of my xmp files contains the following fragment:

      <rdf:Description rdf:about=""
            xmlns:photomechanic="http://ns.camerabits.com/photomechanic/1.0/">
         <photomechanic:Prefs>1:4:3:000251</photomechanic:Prefs>
      </rdf:Description>


I assume this means

1) the photo is tagged,
2) the colour is 4 (1 being magenta and 9 being no colour),
3) three stars have been assigned, and
4) the frane number is 000251.

Could you please confirm this assumption.  Note that the indicated url - http://ns.camerabits.com/photomechanic/1.0/ - returns a 404 not found.

(I need to generate xmp files and update jpegs using exernal data and a perl scrip based on ExifTool.pm)

Thanks
Bob

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24763
    • View Profile
    • Camera Bits, Inc.
Re: xmp file contents
« Reply #1 on: March 13, 2010, 10:53:18 AM »
Bob,

One of my xmp files contains the following fragment:

      <rdf:Description rdf:about=""
            xmlns:photomechanic="http://ns.camerabits.com/photomechanic/1.0/">
         <photomechanic:Prefs>1:4:3:000251</photomechanic:Prefs>
      </rdf:Description>


I assume this means

1) the photo is tagged,
2) the colour is 4 (1 being magenta and 9 being no colour),
3) three stars have been assigned, and
4) the frane number is 000251.

Could you please confirm this assumption.  Note that the indicated url - http://ns.camerabits.com/photomechanic/1.0/ - returns a 404 not found.

(I need to generate xmp files and update jpegs using exernal data and a perl scrip based on ExifTool.pm)

You are correct.  As for the 404 error, there is no such server as ns.camerabits.com, that part is just to provide a unique XML name space for our tags.

-Kirk

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2552
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: xmp file contents
« Reply #2 on: March 13, 2010, 11:04:25 AM »
As Kirk said, this is indeed correct. In fact if you use exiftool, it will show you the information as a "Prefs" tag with the 4 different fields named (e.g., Tagged:1, ColorClass:4, Rating:3, FrameNum:000251). Using perl you should be able to easily get (and set) the different components.

Cheers,
    Hayo
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline Bob M

  • Full Member
  • ***
  • Posts: 143
    • View Profile
    • The McElroys of Point Alexander
Re: xmp file contents
« Reply #3 on: March 13, 2010, 03:02:57 PM »
Thank you both for your help.