From c0323b4b296f8716be7b086b75e10cabae328408 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Thu, 30 Mar 2023 22:21:45 +0300 Subject: [PATCH] fix --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index f061415..0b7c5ba 100644 --- a/main.py +++ b/main.py @@ -75,7 +75,7 @@ async def check_updates(): Image.LANCZOS) im = Image.new('RGBA', dl_im.size, (255, 255, 255)) composite = Image.alpha_composite(im, dl_im).convert('RGB') - file.truncate(0) + file = BytesIO() composite.save(file, format='JPEG') file.seek(0) file.name = 'file.jpg'