[PATCH] Add image/avif to conf/mime.types

Maxim Dounin mdounin at mdounin.ru
Mon Oct 25 18:00:22 UTC 2021


Hello!

On Tue, Oct 19, 2021 at 03:32:57PM +0200, André Rømcke wrote:

> man. 27. sep. 2021 kl. 10:55:
> >
> > Format is stable and broader AVIF support (& likely also adoption) is incoming:
> >
> > - About 1/2 size compared to jpeg, 2/3 of webp, and roughly 1/1 with JPEG XL*
> > - Already supported in Chrome and Firefox:
> >     - Also in Chromium** so soon in Edge, Opera, ...
> >     - And apparently landed in Webkit***
> >
> >
> > Kind regards.
> >
> >
> > * JPEG XL bitstream is frozen, but still work in progress & not
> > supported out of the box:
> > - https://en.wikipedia.org/wiki/JPEG_XL
> > - https://caniuse.com/jpegxl
> >
> > ** https://bugs.chromium.org/p/chromium/issues/detail?id=960620
> >
> > *** https://bugs.webkit.org/show_bug.cgi?id=207750
> 
> Patch inline as attachment did not seem to work:
> 
> diff -r bfad703459b4 conf/mime.types
> --- a/conf/mime.types   Wed Sep 22 10:20:00 2021 +0300
> +++ b/conf/mime.types   Mon Sep 27 10:13:55 2021 +0200
> @@ -15,6 +15,7 @@
>      text/vnd.wap.wml                                 wml;
>      text/x-component                                 htc;
> 
> +    image/avif                                       avif;
>      image/png                                        png;
>      image/svg+xml                                    svg svgz;
>      image/tiff                                       tif tiff;

Added, thanks for prodding this.
https://hg.nginx.org/nginx/rev/3f0ab7b6cd71

-- 
Maxim Dounin
http://mdounin.ru/


More information about the nginx-devel mailing list