Talewright Docs Open the app

How do I serve AVIF with WebP and JPEG fallbacks?

Use <picture>: a <source type="image/avif"> with f=avif addresses, a <source type="image/webp"> with f=webp addresses, and an <img> with an f=jpeg address. The browser takes the first source whose type it can show.