remotes/1693045480750635534/spooky-22
Aevann1 2021-07-29 10:19:20 +02:00
parent 37ba58287c
commit 75fb55fd1a
1 changed files with 2 additions and 2 deletions

View File

@ -33,9 +33,9 @@ def crop_and_resize(img, resize):
def upload_file(file, resize=None):
if resize:
filename = "image.png"
filename = "image.gif"
remove(filename)
file.save(filename)
file.save(filename, format='GIF')
i = IImage.open(filename)
i = crop_and_resize(i, resize)
img = io.BytesIO()