diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2024-08-26 13:00:33 +0200 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2024-08-26 20:36:53 +0200 |
commit | d1d72b1be86f81eb209cdf8a8265d66a4582ebf0 (patch) | |
tree | 5559e1d60f234639ea4444bb1a77fc8d6fc29be9 | |
parent | [i18n] Update po files from launchpad (diff) | |
download | deluge-d1d72b1be86f81eb209cdf8a8265d66a4582ebf0.tar.xz deluge-d1d72b1be86f81eb209cdf8a8265d66a4582ebf0.zip |
[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
-rw-r--r-- | deluge/ui/tracker_icons.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |