master
Aevann1 2021-09-10 04:26:15 +02:00
parent 8281f09435
commit 2a3ee10d43
1 changed files with 5 additions and 2 deletions

View File

@ -28,7 +28,7 @@ def upload_ibb(file, resize=False):
om = next(frames)
om.info = i.info
try: om.save(f"image.{i.format}", save_all=True, append_images=list(frames), loop=0, optimize=True, quality=30)
try: om.save(f"image.{om.format}", save_all=True, append_images=list(frames), loop=0, optimize=True, quality=30)
except Exception as e:
print(e)
return
@ -63,8 +63,11 @@ def upload_imgur(file, resize=False):
om = next(frames)
om.info = i.info
try: om.save(f"image.{i.format}", save_all=True, append_images=list(frames), loop=0, optimize=True, quality=30)
try: om.save(f"image.{om.filename.split('.')[-1]}", save_all=True, append_images=list(frames), loop=0, optimize=True, quality=30)
except Exception as e:
#print(om.filename)
print(type(om))
print(om.format)
print(e)
return
try: