This commit is contained in:
bakatrouble 2023-03-30 22:21:45 +03:00
parent 454629e1c3
commit c0323b4b29

View File

@ -75,7 +75,7 @@ async def check_updates():
Image.LANCZOS) Image.LANCZOS)
im = Image.new('RGBA', dl_im.size, (255, 255, 255)) im = Image.new('RGBA', dl_im.size, (255, 255, 255))
composite = Image.alpha_composite(im, dl_im).convert('RGB') composite = Image.alpha_composite(im, dl_im).convert('RGB')
file.truncate(0) file = BytesIO()
composite.save(file, format='JPEG') composite.save(file, format='JPEG')
file.seek(0) file.seek(0)
file.name = 'file.jpg' file.name = 'file.jpg'