forked from rDrama/rDrama
master
parent
b7e99aa288
commit
6a493c46a9
|
@ -15,8 +15,8 @@ def upload_ibb(file=None, resize=False):
|
||||||
|
|
||||||
if file: file.save("image.webp")
|
if file: file.save("image.webp")
|
||||||
|
|
||||||
|
i = IImage.open("image.webp")
|
||||||
if resize:
|
if resize:
|
||||||
i = IImage.open("image.webp")
|
|
||||||
size = 100, 100
|
size = 100, 100
|
||||||
frames = ImageSequence.Iterator(i)
|
frames = ImageSequence.Iterator(i)
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ def upload_ibb(file=None, resize=False):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
return
|
return
|
||||||
|
i.save("image.webp", save_all=True)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open("image.webp", 'rb') as f:
|
with open("image.webp", 'rb') as f:
|
||||||
|
|
Loading…
Reference in New Issue