From 97e8003c5a41c1c986079da25fca23f9deb51f15 Mon Sep 17 00:00:00 2001 From: Isotr0py <2037008807@qq.com> Date: Mon, 11 Mar 2024 19:50:54 +0800 Subject: [PATCH] :bug:(PIL): Fix raise error in PIL v10.2.0 --- .gitignore | 1 + pillow_jxl/JpegXLImagePlugin.py | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index a7258d0..cb92568 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,7 @@ wsl_venv/ *.egg-info/ .installed.cfg *.egg +wheelhouse/ # Installer logs pip-log.txt diff --git a/pillow_jxl/JpegXLImagePlugin.py b/pillow_jxl/JpegXLImagePlugin.py index bd38f79..31e933b 100644 --- a/pillow_jxl/JpegXLImagePlugin.py +++ b/pillow_jxl/JpegXLImagePlugin.py @@ -66,6 +66,14 @@ def load(self): return super().load() + # may be defined for contained formats + def load_seek(self, pos): + pass + + # may be defined for blocked formats (e.g. PNG) + # def load_read(self, bytes): + # pass + def tell(self): return self.__frame