← Back to team overview

pyexiv2-developers team mailing list archive

Writing XMP Bag and contained information - MS Photo schema

 

Hi pyexiv2-developers,

I currently struggle with pyexiv2 and some complex XMP structures. It is currently possible to write such XMP using pyexiv2? I work on extending exiv2 with two new namespaces which contain the needed XMP entries. I added the first to exiv2, it works using their CLI, but I cannot write it using pyexiv2. Can you please help me answering the question if it may be on pyexiv2's side or if the other (exiv2) side may not be complete.

I want to write a xmp struture like the following to file.
How can I do this using pyexiv2?

  <MP:RegionInfo rdf:parseType="Resource">
    <MPRI:Regions>
     <rdf:Bag>
      <rdf:li
       MPReg:Rectangle="0.661608, 0.244310, 0.130501, 0.261002"
       MPReg:PersonDisplayName="Baby Tux"/>
      <rdf:li
       MPReg:Rectangle="0.205615, 0.226100, 0.130501, 0.261002"
       MPReg:PersonDisplayName="Baby Gnu"/>
     </rdf:Bag>
    </MPRI:Regions>
   </MP:RegionInfo>

More on the extension of exiv2, the working CLI example and the not working pyexiv2 code can be found at http://dev.exiv2.org/boards/3/topics/1039#message-1043

Regards,
Benjamin

Attachment: smime.p7s
Description: S/MIME Kryptografische Unterschrift


Follow ups