Migrate Image.ANTIALIAS to Image.LANCZOS to support Pillow>=10.0.0

This commit is contained in:
Nicolas Pellegrin 2023-07-09 21:49:07 +02:00
parent de4917a31b
commit 12ee9031c5

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