From 12ee9031c5efc772925d621ddda969bae0e56100 Mon Sep 17 00:00:00 2001 From: Nicolas Pellegrin Date: Sun, 9 Jul 2023 21:49:07 +0200 Subject: [PATCH] Migrate Image.ANTIALIAS to Image.LANCZOS to support Pillow>=10.0.0 --- robohash/robohash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robohash/robohash.py b/robohash/robohash.py index e63e617..05020b4 100644 --- a/robohash/robohash.py +++ b/robohash/robohash.py @@ -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