hMatoba / Piexif

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

ascii values without \x00 ending #127

Open EasyIsrael opened 2 years ago

EasyIsrael commented 2 years ago

in some images there are ascii values without terminating null character ( \x00 ). this is a fix for that case. It reduces all characters after a null character in an ascii text

the Github- project exifread solves this problem the same way. Have a look at https://github.com/ianare/exif-py/blob/develop/exifread/classes.py in method _process_field2 on line 193.