Skip to content

Commit

Permalink
🐛(PIL): Fix PIL show
Browse files Browse the repository at this point in the history
  • Loading branch information
Isotr0py authored Mar 11, 2024
1 parent 6e03232 commit 3073977
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions pillow_jxl/JpegXLImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,16 @@ def _open(self):

self.tile = []

def seek(self, frame):
self.load()

if self.__frame + 1 != frame:
# I believe JPEG XL doesn't support seeking in animations
raise NotImplementedError(
"Seeking more than one frame forward is currently not supported."
)
self.__frame = frame
# TODO(Isotr0py): Support animation seeking
# def seek(self, frame):
# self.load()

# if self.__frame + 1 != frame:
# # I believe JPEG XL doesn't support seeking in animations
# raise NotImplementedError(
# "Seeking more than one frame forward is currently not supported."
# )
# self.__frame = frame

def load(self):
if self.__loaded != self.__frame:
Expand Down

0 comments on commit 3073977

Please sign in to comment.