mirror of
https://github.com/e1ven/Robohash.git
synced 2025-06-23 21:35:02 +00:00
Merge pull request #53 from npellegrin/fix-pillow-deprecations
Migrate Image.ANTIALIAS to Image.LANCZOS to support Pillow>=10.0.0
This commit is contained in:
commit
93a83507ca
@ -195,6 +195,6 @@ class Robohash(object):
|
||||
r, g, b, a = roboimg.split()
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user