Switch to Resampling.LANCZOS

generate_smallvariants.py:26: DeprecationWarning:
ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01).
Use LANCZOS or Resampling.LANCZOS instead.

Change-Id: I2d317afb47af9164d3d6c359fe6c197196bdd24d
This commit is contained in:
Bartłomiej Rudecki 2023-03-19 01:10:14 +01:00 committed by Jake Florence
parent 9a68f22cf5
commit ff1cf8edc7

View File

@ -23,7 +23,7 @@ def generate_smallvariants(resource):
with Image.open(os.path.join(wallpapers_path, wallpaper)) as img:
size = int(img.width / 4), int(img.height / 4)
img_small = img.resize(size, Image.ANTIALIAS)
img_small = img.resize(size, Image.Resampling.LANCZOS)
img_small.save(wallpaper_small_path, "JPEG")
def clean(wallpapers_path):