mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 16:24:11 +03:00
Merge pull request #7713 from radarhere/load
This commit is contained in:
commit
80fd507335
|
@ -408,7 +408,7 @@ class EpsImageFile(ImageFile.ImageFile):
|
||||||
self.tile = []
|
self.tile = []
|
||||||
return Image.Image.load(self)
|
return Image.Image.load(self)
|
||||||
|
|
||||||
def load_seek(self, *args, **kwargs):
|
def load_seek(self, pos):
|
||||||
# we can't incrementally load, so force ImageFile.parser to
|
# we can't incrementally load, so force ImageFile.parser to
|
||||||
# use our custom load method by defining this method.
|
# use our custom load method by defining this method.
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -339,7 +339,7 @@ class IcoImageFile(ImageFile.ImageFile):
|
||||||
|
|
||||||
self.size = im.size
|
self.size = im.size
|
||||||
|
|
||||||
def load_seek(self):
|
def load_seek(self, pos):
|
||||||
# Flag the ImageFile.Parser so that it
|
# Flag the ImageFile.Parser so that it
|
||||||
# just does all the decode at the end.
|
# just does all the decode at the end.
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -328,7 +328,7 @@ class ImageFile(Image.Image):
|
||||||
# pass
|
# pass
|
||||||
|
|
||||||
# may be defined for blocked formats (e.g. PNG)
|
# may be defined for blocked formats (e.g. PNG)
|
||||||
# def load_read(self, bytes):
|
# def load_read(self, read_bytes):
|
||||||
# pass
|
# pass
|
||||||
|
|
||||||
def _seek_check(self, frame):
|
def _seek_check(self, frame):
|
||||||
|
|
|
@ -103,7 +103,7 @@ class XpmImageFile(ImageFile.ImageFile):
|
||||||
|
|
||||||
self.tile = [("raw", (0, 0) + self.size, self.fp.tell(), ("P", 0, 1))]
|
self.tile = [("raw", (0, 0) + self.size, self.fp.tell(), ("P", 0, 1))]
|
||||||
|
|
||||||
def load_read(self, bytes):
|
def load_read(self, read_bytes):
|
||||||
#
|
#
|
||||||
# load all image data in one chunk
|
# load all image data in one chunk
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user