Merge pull request #7565 from radarhere/tile

This commit is contained in:
Hugo van Kemenade 2023-12-21 12:59:28 +02:00 committed by GitHub
commit dd42a24f9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -207,6 +207,8 @@ class ImageFile(Image.Image):
if use_mmap:
# try memory mapping
decoder_name, extents, offset, args = self.tile[0]
if isinstance(args, str):
args = (args, 0, 1)
if (
decoder_name == "raw"
and len(args) >= 3

View File

@ -168,6 +168,9 @@ class WebPImageFile(ImageFile.ImageFile):
return super().load()
def load_seek(self, pos):
pass
def tell(self):
if not _webp.HAVE_WEBPANIM:
return super().tell()