forked from rDrama/rDrama
fdfd
parent
911190a314
commit
9134efb3e6
|
@ -34,7 +34,7 @@ def upload_file(file, resize=None):
|
|||
|
||||
if resize:
|
||||
filename = "image.gif"
|
||||
file.save(filename, format='GIF')
|
||||
file.save(filename)
|
||||
i = IImage.open(filename)
|
||||
i = crop_and_resize(i, resize)
|
||||
img = io.BytesIO()
|
||||
|
|
Loading…
Reference in New Issue