From ff1cf8edc7d5b8769c90db12cd233719f084a3e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Rudecki?= Date: Sun, 19 Mar 2023 01:10:14 +0100 Subject: [PATCH] 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 --- generate_smallvariants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate_smallvariants.py b/generate_smallvariants.py index 253769b..338372b 100644 --- a/generate_smallvariants.py +++ b/generate_smallvariants.py @@ -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):