[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
This commit is contained in:
parent
776efe4faa
commit
d1d72b1be8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue