[PATCH] MIME: Added avif/avifs types.

Maxim Dounin mdounin at mdounin.ru
Tue Feb 4 12:32:35 UTC 2020


On Tue, Feb 04, 2020 at 06:19:18PM +0900, Ryo Hirafuji wrote:

> Thank you for reviewing, Dounin!
> Yeah, I know that image/avif or image/avif-sequence are not registered in
> IANA list yet,
> but image/webp is also not registered in IANA list, isn't it?
> WebP and AVIF are similar in some points.
> They are both based on Royalty-free Video format, VP8 for WebP[1] and AV1
> (based upon VP9) for AVIF[2].
> AVIF is already supported in Windows[3], and it is planned to support in
> Chrome[4] and Firefox[5] in the near future.
> So I think it is worth to add "image/avif" to mime.types, if "image/webp"
> is worth to be listed in mime.types.
> Please tell your opinion!

The major difference is that image/webp and video/webm are 
supported by browsers[1][2] and used in the wild, while image/avif 
and image/avif-sequence are not.

As previously suggested, if you want to use these types in your 
configuration, consider modifying mime.types locally or extending 
the existing MIME types list using the "types" directive 

[1] https://caniuse.com/#feat=webp
[2] https://caniuse.com/#feat=webm

Maxim Dounin

More information about the nginx-devel mailing list