Image Optimization

Serving WebP and AVIF from Magento 2 without breaking the CDN or overloading the server: format choice, conversion, nginx negotiation, and LCP.

Start with AVIF vs WebP: measure your own catalog to choose a format, Yireo Webp2 vs JaJuMa vs brocode to choose a module, and WebP and AVIF with nginx to serve them. The Image Optimizer module is the implementation behind these articles.