pyexiv2 can't rewrite his own values
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyexiv2 |
New
|
Undecided
|
Unassigned |
Bug Description
Script to re-create this bug
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import pyexiv2
def read_infos():
exd = {}
ipd = {}
obj = pyexiv2.
obj.
lk = obj.exifKeys()
if lk:
for k in lk:
exd[k] = obj[k]
else :
exd = False
lk = obj.iptcKeys()
if lk:
for k in lk:
ipd[k] = obj[k]
else :
ipd = False
print "Reading ok, writing ..."
if exd:
for k in exd.keys():
try :
except ValueError, strerror:
if ipd:
for k in ipd.keys():
try :
except TypeError, strerror:
print "Done."
if __name__ == "__main__":
import sys
read_infos()
python2.6
pyexiv0.1.3
on Ubuntu 9.04
Image with metadata in attachement.
Here is the output I get with the latest revision of the 0.1 branch on the provided file:
Reading ok, writing ... BitsPerSample Value rejected: (8, 8, 8)
invalid literal for int() with base 10: '(8, 8, 8)'
key: Exif.Image.
'int' object is not iterable n2.RecordVersio n Value rejected: 62211
key: Iptc.Applicatio
Done.