From 31a33e35cea2a0c88c1e8e89b06203166d8f80c4 Mon Sep 17 00:00:00 2001 From: amoibos Date: Thu, 1 May 2014 20:22:10 +0200 Subject: [PATCH] Update Image.py removed unnecessary self.load call --- PIL/Image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PIL/Image.py b/PIL/Image.py index 333397701..8d278317e 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -918,10 +918,10 @@ class Image: :returns: An :py:class:`~PIL.Image.Image` object. """ - self.load() if box is None: return self.copy() - + else: + self.load() # lazy operation return _ImageCrop(self, box)