Avoid resize operation if image is already the correct size

This commit is contained in:
Andrew Murray 2014-09-10 10:41:46 +10:00
parent 9cde0aa7d6
commit 255a090e97

View File

@ -1514,6 +1514,9 @@ class Image:
self.load()
if self.size == size:
return self._new(self.im)
if self.mode in ("1", "P"):
resample = NEAREST