[next/image] Support for AVIF image format #27882
-
Describe the feature you'd like to requestHello. Is that possible to add support for AVIF image format for next/image module at this moment? If you're not familiar with it here's a good topic to learn from Comparing AVIF vs WebP file sizes at the same DSSIM (TLDR; AVIF-encoded images are ~20% lighter than WebP in most of the cases) Many Chrome and Opera versions supports it, and also latest Firefox released major version with AVIF support. Safari doesn't support it yet but considering their latest experience with WebP - they will at some point. Describe the solution you'd likeNextJS should fetch support table from caniuse.com and compare it with visitor's User-Agent and see if browser version supports AVIF. This way NextJS should serve AVIFs to only those visotors whose browser does support it and fallback to WebP otherwise. Describe alternatives you've considered- |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
-
|
This is available in Next.js 12 #29683 |
Beta Was this translation helpful? Give feedback.
This is available in Next.js 12 #29683