From b4fcc44eb97f7569237089f9b05e316dfc232ab7 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Tue, 10 Mar 2015 22:18:54 +0100 Subject: [PATCH] webp: improve comment --- PIL/WebPImagePlugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PIL/WebPImagePlugin.py b/PIL/WebPImagePlugin.py index aadd5750d..d8d7af6eb 100644 --- a/PIL/WebPImagePlugin.py +++ b/PIL/WebPImagePlugin.py @@ -165,7 +165,9 @@ class WebPImageFile(ImageFile.ImageFile): def load_prepare(self): 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)) self.im = im.new_block(self.mode, self.size) ImageFile.ImageFile.load_prepare(self)