From d0d2219f8e6048b3c31851a1e391dbd588b00dd1 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 13 Sep 2021 18:58:25 +0200 Subject: [PATCH] fd --- files/helpers/images.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/helpers/images.py b/files/helpers/images.py index 3d5d0814e3..15978e104d 100644 --- a/files/helpers/images.py +++ b/files/helpers/images.py @@ -19,11 +19,10 @@ def upload_ibb(file=None, resize=False): frames = ImageSequence.Iterator(i) if resize: - size = 100, 100 def thumbnails(frames): for frame in frames: thumbnail = frame.copy() - : thumbnail.thumbnail(size, IImage.ANTIALIAS) + : thumbnail.thumbnail(100, 100, IImage.ANTIALIAS) yield thumbnail frames = thumbnails(frames)