Merge branch 'image_fix' into 'main'

réparation photo de profil

See merge request bde/nk20!241
This commit is contained in:
korenstin 2024-03-21 20:57:56 +01:00
commit 0b0394b61f
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ class ImageForm(forms.Form):
frame = frame.crop((x, y, x + w, y + h)) frame = frame.crop((x, y, x + w, y + h))
frame = frame.resize( frame = frame.resize(
(settings.PIC_WIDTH, settings.PIC_RATIO * settings.PIC_WIDTH), (settings.PIC_WIDTH, settings.PIC_RATIO * settings.PIC_WIDTH),
Image.ANTIALIAS, Image.LANCZOS,
) )
frames.append(frame) frames.append(frame)