accounts: PIL.Image.ANTIALIAS got removed, using LANCZOS for resampling now

This commit is contained in:
Eragon 2023-10-04 16:10:03 +02:00
parent 4a23aee7d9
commit 47c3b82e1a
Signed by: Eragon
GPG Key ID: 087126EBFC725006
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ class Member(User):
self.avatar_filename)
# Resize & convert image
im = Image.open(avatar)
im.thumbnail((128, 128), Image.ANTIALIAS)
im.thumbnail((128, 128), Image.Resampling.LANCZOS)
# Change avatar id
# TODO: verify concurrency behavior