New image formats are always under scrutiny. But either they are not helpful or they are not yet adopted sufficiently. But AVIF was founded by all major technology and browser companies worldwide, including Google, Apple, and Mozilla.
Please note that this post is not sponsored. As there is no free demo of Magento, we could not test them individually on our computers. However, several sources confirm that both plugins work perfectly, so we would encourage you to try them out if you like. Also, according to a Github pull request, Magento will add native support for AVIF headers shortly.Ultimate Image Optimizer Extension for Magento 2 was the first extension to support AVIF images for Magento 2 stores. In addition to local and automatic AVIF conversion, WebP images and original images are available as a fallback. In addition, developers have added lazy loading and retinal support options, giving Magento 2 stores a complete image optimization solution. Their customers benefit from improved page loading times and high-quality images.
Interestingly, he is excited to support other next-generation image formats such as JPEG XL and WebP2 in the future. This enthusiasm has also led him to merge his existing WebP module with the theoretical AVIF module into the new Next-Gen image module. Soon, the extensions could include a CLI to generate these images in advance rather than generating them in no time at all.
I suggest visiting his module page on Packagist or his blog post , where he gives more information about the current state of the plugin, as well as errors he sees when activating AVIF modules on the server, such as not optimizing the view.xml. Have you also created an AVIF module / extension? Let us know so we can add it to the list.