This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 190075837e6499ba46636ca97f4b7bd38ae3a127
Author: Dillon Walls <[email protected]>
AuthorDate: Thu Jan 26 20:16:59 2023 +0000

    [#8495] fix DeprecationWarning PIL 'ANTIALIAS' -> 'LANCZOS'
---
 Allura/allura/model/filesystem.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Allura/allura/model/filesystem.py 
b/Allura/allura/model/filesystem.py
index 6f058d62a..ed0808383 100644
--- a/Allura/allura/model/filesystem.py
+++ b/Allura/allura/model/filesystem.py
@@ -154,7 +154,7 @@ class File(MappedClass):
             image = new_image
 
         if thumbnail_size:
-            image.thumbnail(thumbnail_size, PIL.Image.ANTIALIAS)
+            image.thumbnail(thumbnail_size, PIL.Image.LANCZOS)
 
         thumbnail_meta = thumbnail_meta or {}
         thumbnail = cls(

Reply via email to