Skip to content

Commit

Permalink
🐛(PIL): Fix raise error in PIL v10.2.0 (#27)
Browse files Browse the repository at this point in the history
* Fix buffer is not large enough error in PIL v10.2.0
  • Loading branch information
Isotr0py authored Mar 11, 2024
1 parent 34d9b4c commit 1103794
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ wsl_venv/
*.egg-info/
.installed.cfg
*.egg
wheelhouse/

# Installer logs
pip-log.txt
Expand Down
8 changes: 8 additions & 0 deletions pillow_jxl/JpegXLImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1103794

Please sign in to comment.