bigcat88/pillow_heif

Pillow 9.3.0 `webp` EXIF changes leads to crash

bigcat88 opened this issue · 0 comments

In version 9.3.0 Pillow allows to save EXIF for WEBP format without firsts 6 bytes b'Exif\x00\x00'
python-pillow/Pillow#6582

This code

if not _result and md_block["data"] and md_block["data"][0:4] == b"Exif":
cannot read them.
And this throws and exception during parsing EXIF:
tif_tag = info["exif"][6:]