diff --git a/adacher.py b/adacher.py
index 345a0eacb2f23167a45daa406e4f2e6c79b6ae76..87ab8fc158c840d6512a2a01f7ee6c467061f738 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))