From 48dcbc8d56a457e8b9c9c78a658fa464d3798dd8 Mon Sep 17 00:00:00 2001 From: Elliu <elliu@hashi.re> Date: Sun, 16 Apr 2023 23:52:11 +0200 Subject: [PATCH] Use non-deprecated Image.Resampling.LANCZOS --- adacher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adacher.py b/adacher.py index 345a0ea..87ab8fc 100755 --- a/adacher.py +++ b/adacher.py @@ -120,6 +120,6 @@ draw.text(( finalHeight = 200 finalWidth = finalHeight * width // boxBot -img = img.resize((finalWidth, finalHeight), Image.LANCZOS) +img = img.resize((finalWidth, finalHeight), Image.Resampling.LANCZOS) img.save("tmpAdacher.png", format="PNG") print(str(finalWidth) + "," + str(finalHeight)) -- GitLab