remove thumbnail fallback

This commit is contained in:
homm 2014-11-09 04:20:54 +03:00
parent aba798af25
commit 693aff7ee1

View File

@ -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