mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 02:06: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.draft(None, size)
|
||||||
|
|
||||||
self.load()
|
|
||||||
|
|
||||||
try:
|
|
||||||
im = self.resize(size, resample)
|
im = self.resize(size, resample)
|
||||||
except ValueError:
|
|
||||||
if resample != ANTIALIAS:
|
|
||||||
raise
|
|
||||||
im = self.resize(size, NEAREST) # fallback
|
|
||||||
|
|
||||||
self.im = im.im
|
self.im = im.im
|
||||||
self.mode = im.mode
|
self.mode = im.mode
|
||||||
|
|
Loading…
Reference in New Issue
Block a user