from version 8.1 PHP will support conversion to AVIF image format via the GD extension, see here: https://php.watch/versions/8.1/gd-avif. PHP 8.1 is not out yet, but it will be coming out in two months, on 25.11.2021.
Moreover AVIF image format is supported by Google Chrome, and it will be soon supported by Firefox as well, see here: https://caniuse.com/avif.
What I consider doing is to write a new plugin+snippet, that will convert images to:
- AVIF, if the user's browser accepts it;
- if user's browser does not accept AVIF, then WebP will be used, if it is accepted;
- if user's browser does not accept WebP, then original image is used.
The development will not be so hard, as in principle lot of the code can be reused from WebP Converter.
The only problem is that none of the webpages I maintain are anywhere close to using PHP 8.1, the hosting I use can do at best PHP 7.4 😅 So is there anyone in here that runs their webpages on the bleeding edge of PHP and would be interested in testing and using this plugin in production?
Also, what should it be called? I was thinking Image Optimizer to make it general enough, as I also intend to eventually add support for newer image formats later on.