From: Guillaume Pellerin Date: Fri, 19 Jan 2024 14:44:58 +0000 (+0100) Subject: fix Image antialiasing method X-Git-Tag: 2.9.0~41^2~1 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d7b57931a3b24c1d2b32d558c83ba11a8bbbcdfd;p=teleforma.git fix Image antialiasing method --- 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")