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