From d1d72b1be86f81eb209cdf8a8265d66a4582ebf0 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 26 Aug 2024 12:00:33 +0100 Subject: [PATCH] [UI] Replace deprecated Pillow Image.Antialias with Lanczos ANTIALIAS was removed in Pillow 10.0.0 so replace with suggested alternative. Ref: https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants --- deluge/ui/tracker_icons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/tracker_icons.py b/deluge/ui/tracker_icons.py index 5f619af63..d9e080a98 100644 --- a/deluge/ui/tracker_icons.py +++ b/deluge/ui/tracker_icons.py @@ -465,7 +465,7 @@ class TrackerIcons(Component): with Image.open(filename) as img: if img.size > (16, 16): new_filename = filename.rpartition('.')[0] + '.png' - img = img.resize((16, 16), Image.ANTIALIAS) + img = img.resize((16, 16), Image.Resampling.LANCZOS) img.save(new_filename) if new_filename != filename: remove_old = True