mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 16:51:00 +00:00
Save all animation frames if they make it through
This commit is contained in:
parent
4bea1006b1
commit
fa003e2be6
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ def resize_image(
|
||||||
resized_image.save(new_image_bytes, format=img.format)
|
resized_image.save(new_image_bytes, format=img.format)
|
||||||
file = ImageFile(new_image_bytes)
|
file = ImageFile(new_image_bytes)
|
||||||
else:
|
else:
|
||||||
resized_image.save(new_image_bytes, format="webp")
|
resized_image.save(new_image_bytes, format="webp", save_all=True)
|
||||||
file = ImageFile(new_image_bytes, name="image.webp")
|
file = ImageFile(new_image_bytes, name="image.webp")
|
||||||
file.image = resized_image
|
file.image = resized_image
|
||||||
return file
|
return file
|
||||||
|
|
Loading…
Reference in a new issue