mirror of
https://github.com/e1ven/Robohash.git
synced 2025-06-23 21:35:02 +00:00
Migrate Image.ANTIALIAS to Image.LANCZOS to support Pillow>=10.0.0
This commit is contained in:
parent
de4917a31b
commit
12ee9031c5
@ -195,6 +195,6 @@ class Robohash(object):
|
|||||||
r, g, b, a = roboimg.split()
|
r, g, b, a = roboimg.split()
|
||||||
roboimg = Image.merge("RGB", (r, g, b))
|
roboimg = Image.merge("RGB", (r, g, b))
|
||||||
|
|
||||||
self.img = roboimg.resize((sizex,sizey),Image.ANTIALIAS)
|
self.img = roboimg.resize((sizex,sizey),Image.LANCZOS)
|
||||||
self.format = format
|
self.format = format
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user