fd
This commit is contained in:
parent
cdda551db1
commit
2a9f66a3dc
1 changed files with 2 additions and 1 deletions
|
@ -15,8 +15,8 @@ def upload_ibb(file=None, resize=False):
|
|||
|
||||
if file: file.save("image.webp")
|
||||
|
||||
if resize:
|
||||
i = IImage.open("image.webp")
|
||||
if resize:
|
||||
size = 100, 100
|
||||
frames = ImageSequence.Iterator(i)
|
||||
|
||||
|
@ -34,6 +34,7 @@ def upload_ibb(file=None, resize=False):
|
|||
except Exception as e:
|
||||
print(e)
|
||||
return
|
||||
i.save("image.webp", save_all=True)
|
||||
|
||||
try:
|
||||
with open("image.webp", 'rb') as f:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue