about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/audio/beets/patches/fix-pillow10-compat.patch
blob: f85eec20156cc62a951d325385a597f304dc7c37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git i/beets/util/artresizer.py w/beets/util/artresizer.py
index 8683e228..6f99c79e 100644
--- i/beets/util/artresizer.py
+++ w/beets/util/artresizer.py
@@ -72,7 +72,7 @@ def pil_resize(maxwidth, path_in, path_out=None, quality=0, max_filesize=0):
     try:
         im = Image.open(util.syspath(path_in))
         size = maxwidth, maxwidth
-        im.thumbnail(size, Image.ANTIALIAS)
+        im.thumbnail(size, Image.Resampling.LANCZOS)
 
         if quality == 0:
             # Use PIL's default quality.