From d7b57931a3b24c1d2b32d558c83ba11a8bbbcdfd Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 19 Jan 2024 15:44:58 +0100 Subject: [PATCH] fix Image antialiasing method --- bin | 2 +- teleforma/forms.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin b/bin index 877deb91..7a7c9ab6 160000 --- a/bin +++ b/bin @@ -1 +1 @@ -Subproject commit 877deb91a9d035c74bf726fed8851d38e93014ce +Subproject commit 7a7c9ab66099c6e93acacf48d589bfc9da5a9fc2 diff --git a/teleforma/forms.py b/teleforma/forms.py index b83393a5..de7a0b8a 100644 --- a/teleforma/forms.py +++ b/teleforma/forms.py @@ -158,7 +158,7 @@ class UserForm(ModelForm): # resize image img = Image.open(image.file) - new_image = img.resize((NEW_WIDTH, NEW_HEIGHT), Image.ANTIALIAS) + new_image = img.resize((NEW_WIDTH, NEW_HEIGHT), Image.LANCZOS) if new_image.mode == "RGBA": new_image = new_image.convert("RGB") -- 2.39.5