Save all animation frames if they make it through

This commit is contained in:
Andrew Godwin 2023-01-08 14:28:09 -07:00
parent 4bea1006b1
commit fa003e2be6

View file

@ -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