[PATCH] MIME: Added avif/avifs types.
Maxim Dounin
mdounin at mdounin.ru
Mon Feb 3 17:20:41 UTC 2020
Hello!
On Mon, Feb 03, 2020 at 04:55:06PM +0900, 平藤燎 wrote:
> Hello, I added new mime-types, "image/avif" and "image/avif-sequence".
> Please take a look,
>
> # HG changeset patch
> # User Ryo Hirafuji <ryo.hirafuji at link-u.co.jp>
> # Date 1580715197 -32400
> # Mon Feb 03 16:33:17 2020 +0900
> # Branch mime-avif-avifs
> # Node ID 28c8371bb45be38623f8ac0e958d14b55600198a
> # Parent b8a512c6466c3b2f77876edf14061c5d97e6159f
> MIME: Added avif/avifs types.
>
> "avif" is an image format based on AV1, royalty-free video coding format.
> "avifs" is an image sequence format, that contains multiple avif images
> like animated gifs.
>
> [Reference]
> avif/avifs: https://aomediacodec.github.io/av1-avif/
> AV1: https://aomediacodec.github.io/av1-spec/av1-spec.pdf
>
> diff -r b8a512c6466c -r 28c8371bb45b conf/mime.types
> --- a/conf/mime.types Tue Jan 21 16:39:42 2020 +0300
> +++ b/conf/mime.types Mon Feb 03 16:33:17 2020 +0900
> @@ -20,6 +20,8 @@
> image/tiff tif tiff;
> image/vnd.wap.wbmp wbmp;
> image/webp webp;
> + image/avif avif;
> + image/avif-sequence avifs;
> image/x-icon ico;
> image/x-jng jng;
> image/x-ms-bmp bmp;
Thank you for the patch.
Note that nginx doesn't try to maintain all the mime types known,
but rather tries to supply types generally needed for a web
server. Particular MIME types don't seem to be widely used,
and not even registered by IANA[1].
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 (http://nginx.org/r/types).
[1] https://www.iana.org/assignments/media-types
--
Maxim Dounin
http://mdounin.ru/
More information about the nginx-devel
mailing list