hMatoba / Piexif

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

Can not dump exif_dict : dump got wrong type of exif value. 50728 in should be Rational instead of Short #119

Open ThePMO opened 2 years ago

ThePMO commented 2 years ago

I'm having problems with loading and dumping the exif data from my Insta360 camera.

This issue is similar to #95 and #83

The source of the problem is that piexif expects SHORT values for tag 50728 (As Shot Neutral), but the values in the file are rationals. https://exiv2.org/tags.html does specify this tag as a short type, but exiftool uses rationals, so I assume the latter is true.