mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-11 17:56:18 +03:00
remove thumbnail fallback
This commit is contained in:
parent
aba798af25
commit
693aff7ee1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user