Problem/Motivation
#3510582: AVIF conversion with WEBP fallback added an AVIF image effect with configurable fallback.
Core already ships with webp, but we can change this to AVIF with a webp fallback to have smaller image derivatives out of the box.
This should be done for both the standard profile and Umami - can be one MR for all shipped image styles.
I'll open an equivalent issue for Drupal CMS too.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3524206
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3524206-use-avif
changes, plain diff MR !12141
Comments
Comment #4
mstrelan commentedI installed Umami profile on 11.x (WEBP) and then on this branch (AVIF) then ran
wget --mirrorto warm all the image styles. The results are below. We save around 2.5 MB (40%) using AVIF.WEBP:
AVIF:
Below shows a comparison for each style:
Considering past discussions on efficiency of decoding AVIF, perhaps we could consider using WEBP by default for image styles with less than 35% saving. Or perhaps any other arbitrary number.
Also note, the following image styles exist outside of the any profiles subdirectory:
Comment #5
smustgrave commentedPretty simple, just did a search for id: image_convert and 34 instances in core, all got updated here.
Comment #9
catchCommitted/pushed to 11.x and cherry-picked to 11.2.x, thanks!