forked from MarseyWorld/MarseyWorld
master
parent
8281f09435
commit
2a3ee10d43
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue