- Issue created by @kostyashupenko
- 🇦🇺Australia mstrelan
If we convert all images on the site to WEBP it means we won't have fallback images (JPG/PNG/GIF) via responsive images. That might be ok given WEBP is almost ubiquitous, but would need to be optional for those that need to support older browsers. AVIF is not quite there in terms of support, but getting much closer especially now it's supported in Edge 121.
There is also the approach seen in various contrib modules to automatically add WEBP/AVIF conversions to responsive image formats and retain the original fallback versions. This requires all images on the site to be displayed using the responsive image formatter and requires ImageStyleDownloadController to be overridden or modified to find the derivatives.
Finally there is the approach of manually replicating all the image styles with WEBP or AVIF equivalents and configuring the responsive image styles to include these image styles.
I think in most cases the simplest approach would be a global option to convert older formats to WEBP, and we can add AVIF as an alternative when it's better supported. In the meantime sites wanting to support AVIF can use a contrib solution.
- 🇫🇷France andypost
Main issue with AVIF ATM is write support in imagick/gmagick (libheif vs libavif)
I think it could be contrib module to ensure each image-style or responsive set has specific convertion as the last effect
It will be very much faster to do this particular feature in a contributed module than in core, and it could be later brought into core.