Skip to content

Commit

Permalink
Fix exif in HEIF sequence for Pillow 9.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
bigcat88 committed Jul 2, 2022
1 parent 0786242 commit 59a9c87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pillow_heif/as_opener.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ def seek(self, frame):
return
self.__frame = frame
self._init_from_heif_file(frame)
_exif = getattr(self, "_exif", None) # Pillow 9.2+ do no reload exif between frames.
if _exif is not None:
if getattr(_exif, "_loaded", None):
_exif._loaded = False # pylint: disable=protected-access

def tell(self):
return self.__frame
Expand Down

0 comments on commit 59a9c87

Please sign in to comment.