XMP conversion for type [ContactInfo] is not implemented

Bug #914598 reported by Damon Lynch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyexiv2
Confirmed
Medium
Unassigned

Bug Description

For a photographer, Contact information is an important part of the metadata - it contains how to contact them, containing email, website etc. See http://www.exiv2.org/tags-xmp-iptc.html

When XMP information includes something like the following:

   <Iptc4xmpCore:CreatorContactInfo
    Iptc4xmpCore:CiAdrExtadr="Address&#xA;Apartment"
    Iptc4xmpCore:CiAdrCity="Contact City"
    Iptc4xmpCore:CiAdrRegion="Contact State"
    Iptc4xmpCore:CiAdrPcode="Contact Post code"
    Iptc4xmpCore:CiTelWork="+1 111 111 1111"
    Iptc4xmpCore:CiAdrCtry="Contact Country"
    Iptc4xmpCore:CiUrlWork="http://www.sample.net"
    Iptc4xmpCore:<email address hidden>, <email address hidden>"/>

Pyexiv2 gives the following error:
  File "/usr/lib/python2.7/dist-packages/pyexiv2/xmp.py", line 210, in _get_value
    self._compute_value()
  File "/usr/lib/python2.7/dist-packages/pyexiv2/xmp.py", line 204, in _compute_value
    self._value = self._convert_to_python(self._raw_value, self.type)
  File "/usr/lib/python2.7/dist-packages/pyexiv2/xmp.py", line 374, in _convert_to_python
    raise NotImplementedError('XMP conversion for type [%s]' % type)
NotImplementedError: XMP conversion for type [ContactInfo]

Revision history for this message
Olivier Tilloy (osomon) wrote :

Indeed, conversion from the ContactInfo type is not implemented yet.

I suppose it could return a dictionary where the keys would be 'CiAdrCity', 'CiAdrCtry', ... What do you think?

For convenience, could you provide a sample picture that contains such metadata? Thanks!

Changed in pyexiv2:
importance: Undecided → Medium
status: New → Confirmed
summary: - XMP conversion for type [ContactInfo]
+ XMP conversion for type [ContactInfo] is not implemented
Revision history for this message
Damon Lynch (dlynch3) wrote :

A dictionary makes more sense than a tuple. I have attached a sample image - one from the archives I was working on last night ;-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.