mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-28 20:40:15 +02:00
wallpaper: use Image.Resampling.LANCZOS
This commit is contained in:
parent
54d5d473af
commit
14f933d7e7
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ def build(background: Image, wallpaper_parts: list[WallpaperPart]) -> None:
|
|||
if imy < rectangle.height:
|
||||
imx, imy = image.width * rectangle.height // image.height, rectangle.height
|
||||
if image.size != (imx, imy):
|
||||
image = image.resize((imx, imy), Image.LANCZOS)
|
||||
image = image.resize((imx, imy), Image.Resampling.LANCZOS)
|
||||
image = image.crop(
|
||||
(
|
||||
(imx - rectangle.width) / 2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue