Fix Image resize + Partial API fix

This commit is contained in:
Jean-Baptiste Doderlein 2023-11-07 16:22:31 +01:00
parent 8c57eb8096
commit b280647c35
2 changed files with 8 additions and 5 deletions

View file

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