fd
This commit is contained in:
parent
3650f116bc
commit
84492ab602
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ def upload_ibb(filepath=None, file=None, resize=False):
|
||||||
def upload_imgur(filepath=None, file=None, resize=False):
|
def upload_imgur(filepath=None, file=None, resize=False):
|
||||||
|
|
||||||
if filepath: file = IImage.open(file)
|
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)
|
file = IImage.open(file)
|
||||||
if resize:
|
if resize:
|
||||||
i = IImage.open(file)
|
i = IImage.open(file)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue