fix
This commit is contained in:
parent
454629e1c3
commit
c0323b4b29
2
main.py
2
main.py
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user