mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-09 06:44:45 +03:00
webp: improve comment
This commit is contained in:
parent
ec221cdbc5
commit
b4fcc44eb9
|
@ -165,7 +165,9 @@ class WebPImageFile(ImageFile.ImageFile):
|
||||||
|
|
||||||
def load_prepare(self):
|
def load_prepare(self):
|
||||||
if not self.im:
|
if not self.im:
|
||||||
# Hackety hack hack hack...
|
# Hackety hack hack hack... force block storage (one continuous
|
||||||
|
# buffer), so we don't need to allocate a temporary output buffer
|
||||||
|
# for the decoder.
|
||||||
im = Image.core.new(self.mode, (0,0))
|
im = Image.core.new(self.mode, (0,0))
|
||||||
self.im = im.new_block(self.mode, self.size)
|
self.im = im.new_block(self.mode, self.size)
|
||||||
ImageFile.ImageFile.load_prepare(self)
|
ImageFile.ImageFile.load_prepare(self)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user