← Back to team overview

phatch-dev team mailing list archive

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

 

** Also affects: phatch
   Importance: Undecided
       Status: New

** Changed in: phatch
   Importance: Undecided => Medium

** Changed in: phatch
       Status: New => Confirmed

** Changed in: phatch
     Assignee: (unassigned) => stani (stani)

-- 
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 Phatch = Photo & Batch!: Confirmed
Status in pyexiv2, a python binding to exiv2: Confirmed

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)'
>>>