From 268c35aad2148721f470d4c6933ac1d43540bcd2 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 26 Aug 2021 11:22:16 +0200 Subject: [PATCH] wallpaper: use Lanczos in all cases --- bin/wallpaper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/wallpaper b/bin/wallpaper index 244946f..823f79d 100755 --- a/bin/wallpaper +++ b/bin/wallpaper @@ -113,7 +113,7 @@ else: if (options.crop and imy < y) or (not options.crop and imy > y): imx, imy = image.size[0] * y // image.size[1], y if image.size != (imx, imy): - image = image.resize((imx, imy), Image.CUBIC) + image = image.resize((imx, imy), Image.LANCZOS) if options.crop: image = image.crop( ((imx - x) / 2, (imy - y) / 2, imx - (imx - x) / 2, imy - (imy - y) / 2)