From de2536aeba908325d592da97b7f4d53c714cc635 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 25 Aug 2023 06:38:15 +0300 Subject: [PATCH] fix emoji size --- files/helpers/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index 03dee4946..2c4dcba16 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -189,7 +189,7 @@ def process_image(filename, v, resize=0, trim=False, uploader_id=None, db=None): try: with Image.open(filename) as i: - if size > max_size: + if not resize and size > max_size: ratio = max_size / size resize = i.width * ratio