Closed peter17 closed 5 years ago
I'm sorry I didn't notice this problem in time.
I haven't encountered this problem yet. The reason may be that your image metadata is a special value that I haven't encountered yet.
Please forward your image file to me and let me have a try.
I can successfully perform the following operations:
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyexiv2
>>> i = pyexiv2.Image("1.jpg")
>>> i.read_exif()
{'Exif.Image.ImageDescription': '11', 'Exif.Image.ExifTag': '2158', ...
>>> len(i.read_exif())
9
>>> i.modify_exif({'Exif.Image.Make': 'Panasonic'})
>>> i.read_exif()["Exif.Image.Make"]
'Panasonic'
Hi @LeoHsiao1 I tried again and it is working fine now... I don't understand why. That image may have been corrupted... Thanks. Best regards.
This issue has been automatically closed because there has been no activity for a month.
Hi!
I encounter a problem with pyexiv2: the following will work fine:
But calling read_exif a second time or saving output to a dict will produce:
What can I do? Thanks in advance! Best regards