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:
Robohash 2024-02-07 17:12:38 -05:00 committed by GitHub
commit 93a83507ca

View File

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