forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-09-10 05:12:51 +02:00
parent e76a4a4d59
commit 25c9c38d42
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ def upload_ibb(filepath=None, file=None, resize=False):
def upload_imgur(filepath=None, file=None, resize=False):
if filepath: file = IImage.open(file)
file.save(f"image.{file.format}", optimize=True, quality=30)
file.save(f"image.png", optimize=True, quality=30)
file = IImage.open(file)
if resize:
i = IImage.open(file)