From 693aff7ee1403c1184ff6a500587077cd1195004 Mon Sep 17 00:00:00 2001 From: homm Date: Sun, 9 Nov 2014 04:20:54 +0300 Subject: [PATCH] remove thumbnail fallback --- PIL/Image.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/PIL/Image.py b/PIL/Image.py index 8e7140847..82bed82ad 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -1789,14 +1789,7 @@ class Image: self.draft(None, size) - self.load() - - try: - im = self.resize(size, resample) - except ValueError: - if resample != ANTIALIAS: - raise - im = self.resize(size, NEAREST) # fallback + im = self.resize(size, resample) self.im = im.im self.mode = im.mode