hMatoba / Piexif

Exif manipulation with pure python script.
MIT License
369 stars 82 forks source link

load failing #50

Closed jernejaMislej closed 6 years ago

jernejaMislej commented 6 years ago

About

Load fails with some images, in some cases ValueError is thrown, but in some it will try to unpack and fail there.

Notes EXIF can not be loaded, ValueError is not always thrown. Command line tools like ExifTool can read these files, but also have problems editing/writing back. pexif can read and write There seems to be an issue with the first tag (InteropIndex). Could this tag be skipped in such cases? FYI, most common make and model we experience this issues:

SONY     HDR-AS300
SONY     HDR-AS200V
Garmin   VIRBX
Garmin   VIRBXE

Data 0hqfncihmssmmhqgzqanpq 0tx1netbeqatazdn588kta 1nxubaunj5-z8eqkik4e5q 1vzo1xk8xf8nzmg7uwgjtg 2xgoqkiztq7ww-fowy85sq 3deweymbpzhjvqqik--ulw 3iq7cnod2ln2h7dvw78etg 4necgkt2drys0di82lez3w 7k42oeosvv-ksb7t5ahqta 7shuhfkreihwztjfd4y7yg 8xd7n82jz8lw8lsduoaavg 9bcjc7ma8knhhq8ra35gxg 9dnztz3bsuxqf5mnpwjwoa 9l4v9tqjek5xtcesdji7uq 17wfgoygkwlvlory9kyiyw 35u4dqsw6z-jqpim8wiysg 96taipdqt27avd3d-dbfmw adk64r3waaqsipou22mzva adwkxpub0461dpt2nfmoaw ae2-mloiizpk8agkw6i5-g aeqb6vstcl0vxlnojzh0uw altmrsp5dfn1-u-2jqw5cg bii7prnxkdykb2xoqxyb6q bnbmt-d5tchp9opw0se4iq cqaesa5m4ngdvnqdg0bwow

hMatoba commented 6 years ago

If I add some code to load broken files, Piexif get broken sometime soon. I think that a file doesn't have correct exif that isn't Piexif's matter. Of course, if Piexif's has bug, I fix it.