]> git.parisson.com Git - teleforma.git/commitdiff
fix Image antialiasing method
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Fri, 19 Jan 2024 14:44:58 +0000 (15:44 +0100)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Fri, 19 Jan 2024 14:44:58 +0000 (15:44 +0100)
bin
teleforma/forms.py

diff --git a/bin b/bin
index 877deb91a9d035c74bf726fed8851d38e93014ce..7a7c9ab66099c6e93acacf48d589bfc9da5a9fc2 160000 (submodule)
--- a/bin
+++ b/bin
@@ -1 +1 @@
-Subproject commit 877deb91a9d035c74bf726fed8851d38e93014ce
+Subproject commit 7a7c9ab66099c6e93acacf48d589bfc9da5a9fc2
index b83393a57893f74262fc0fd66452c19d2d2a1a54..de7a0b8a84d9e791f3adf43885352c4ca0679c1a 100644 (file)
@@ -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")