0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Optimize PNGs as well

This commit is contained in:
Dmitry Vasilev 2018-05-15 22:37:34 +02:00 committed by Karl Hobley
parent 7034cd1317
commit 73cca8cbed

View File

@ -408,7 +408,7 @@ class Filter:
return willow.save_as_jpeg(output, quality=quality, progressive=True, optimize=True)
elif output_format == 'png':
return willow.save_as_png(output)
return willow.save_as_png(output, optimize=True)
elif output_format == 'gif':
return willow.save_as_gif(output)