diff --git a/PIL/Image.py b/PIL/Image.py index 5e1416a33..cd1e450ee 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -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