master
Aevann1 2021-09-10 06:23:24 +02:00
parent 9c84ec4b19
commit 1fbcbaa2af
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ def upload_ibb(filepath=None, file=None, resize=False):
om.info = i.info
try: om.save(filepath, save_all=True, append_images=list(frames), loop=0, optimize=True, quality=30)
except: return
elif format != ".gif":
elif format != "gif":
i = IImage.open(filepath)
i.save(filepath, optimize=True, quality=30)
@ -78,7 +78,7 @@ def upload_imgur(filepath=None, file=None, resize=False):
om.info = i.info
try: om.save(filepath, save_all=True, append_images=list(frames), loop=0, optimize=True, quality=30)
except: return
elif format != ".gif":
elif format != "gif":
i = IImage.open(filepath)
i.save(filepath, optimize=True, quality=30)