This is an automated email from the ASF dual-hosted git repository.
dill0wn pushed a commit to branch dw/8495
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/dw/8495 by this push:
new 9d3069582 [#8495] fix DeprecationWarning PIL 'ANTIALIAS' -> 'LANCZOS'
9d3069582 is described below
commit 9d306958206abd24b5d2476d035bd01bc45eb930
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(