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'