From 78da6d6788d3eb8cc8b7c456dbb0f85b3df651c9 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Thu, 30 Mar 2023 22:15:27 +0300 Subject: [PATCH] fix --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 190f244..c70b19c 100644 --- a/main.py +++ b/main.py @@ -65,6 +65,7 @@ async def check_updates(): caption=caption) elif post.file.ext in ('png', 'jpg'): if post.file.size > 10000000: + logging.warning('compressing') dl_im = Image.open(file).convert('RGBA') dl_im.thumbnail((2048, 2048), Image.LANCZOS) im = Image.new('RGBA', dl_im.size, (255, 255, 255))