← Back to team overview

phatch-dev team mailing list archive

[Bug 256875] Re: Unable to add/modify multiple value short tags

 

Fixed in the 0.2 branch. The expected syntax for the original example
would now look like this:

    import pyexiv2
    metadata = pyexiv2.ImageMetadata("brokenbig.jpg")
    metadata.read()
    metadata['Exif.CanonCs.Lens'].value = (55, 18, 1)

** Changed in: pyexiv2
       Status: Confirmed => Fix Committed

-- 
Unable to add/modify multiple value short tags
https://bugs.launchpad.net/bugs/256875
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.

Status in IntiPunku photo manager: Triaged
Status in Phatch = Photo & Batch!: Triaged
Status in pyexiv2, a python binding to exiv2: Fix Committed

Bug description:
Steps to re-create bug
-----------------------------
>>> image = pyexiv2.Image("brokenbig.jpg")
>>> image.readMetadata()
>>> image['Exif.CanonCs.Lens'] = (55,18,1)

Expected outcome
------------------------
Exif data field added/modified:

Actual outcome
--------------------
The following exception is raised:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.5/site-packages/pyexiv2.py", line 595, in __setitem__
    self.__exifTagsDict[key] = ConvertToPythonType(tagFamily, typeName, str(value))
  File "/usr/lib64/python2.5/site-packages/pyexiv2.py", line 355, in ConvertToPythonType
    value = int(tagValue)
ValueError: invalid literal for int() with base 10: '(55, 18, 1)'
>>>