wagtail / Willow

A wrapper that combines the functionality of multiple Python image libraries into one API
https://willow.wagtail.org/
BSD 3-Clause "New" or "Revised" License
273 stars 53 forks source link

AVIF support #111

Closed jorenham closed 1 year ago

jorenham commented 1 year ago

In the 1.5 release, pillow-heif has been used to add .heic support. I noticed that pillow-heif also has .avif functionality. And as far as I can tell, .heic will probably not win the browser-adaptation game against avif, due to its licensing. So I think I'd be a good addition to integrate avif, as well. It should be an easy to add to willow, at the very least.

thibaudcolas commented 1 year ago

Hi @jorenham, thanks for raising this. I’ve been following https://github.com/python-pillow/Pillow/pull/5201 for a while hoping to see AVIF support directly in Pillow, and didn’t realise pillow-heif was another option!

Just comparing what codecs are used:

thibaudcolas commented 1 year ago

I’ve opened AVIF support in Wagtail as a separate issue. Support in Willow is the first step, but I believe tracking this on Wagtail’s bug tracker too will give this more visibility.