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:
parent
7034cd1317
commit
73cca8cbed
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user