hMatoba / Piexif

Exif manipulation with pure python script.
MIT License
367 stars 81 forks source link

failure on Interop Tag #66

Closed GillesP227 closed 5 years ago

GillesP227 commented 5 years ago

I have a failure on this image :

2011-04-24-17-15-25 - croatie isabelle - img_2968

The Interop section does not seem to be correct. I use python 3.6.5. No problem with exiftool : no Interop information.

Traceback (most recent call last): [...] exif_dict = piexif.load(file) File "C:\Program Files\Python36\lib\site-packages\piexif_load.py", line 48, in load exif_dict["Interop"] = exifReader.get_ifd_dict(pointer, "Interop") File "C:\Program Files\Python36\lib\site-packages\piexif_load.py", line 119, in get_ifd_dict ifd_dict[tag] = self.convert_value(v_set) File "C:\Program Files\Python36\lib\site-packages\piexif_load.py", line 243, in convert_value "tag: " + str(val[3]) + "\ntype: " + str(t)) ValueError: Exif might be wrong. Got incorrect value type to decode. tag: 1 type: 0

hMatoba commented 5 years ago

Interop IFD is wrong in the file. ExitTool warns it, too. http://exif.regex.info/exif.cgi