[go] mime: Add mime type for avif image file format

88 views
Skip to first unread message

Amit Mittal (Gerrit)

unread,
Sep 22, 2020, 12:30:29 PM9/22/20
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Amit Mittal has uploaded this change for review.

View Change

mime: Add mime type for avif image file format

Change-Id: I28b6df5e2523fc2ece6fd8251fcabc83c7c38d89
---
M src/mime/type.go
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/mime/type.go b/src/mime/type.go
index 6d2b89e..a13aa04 100644
--- a/src/mime/type.go
+++ b/src/mime/type.go
@@ -72,6 +72,7 @@
".svg": "image/svg+xml",
".wasm": "application/wasm",
".webp": "image/webp",
+ ".avif": "image/avif",
".xml": "text/xml; charset=utf-8",
}


To view, visit change 256478. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I28b6df5e2523fc2ece6fd8251fcabc83c7c38d89
Gerrit-Change-Number: 256478
Gerrit-PatchSet: 1
Gerrit-Owner: Amit Mittal <mittal...@gmail.com>
Gerrit-MessageType: newchange

Ian Lance Taylor (Gerrit)

unread,
Sep 22, 2020, 2:13:05 PM9/22/20
to Amit Mittal, goph...@pubsubhelper.golang.org, Brad Fitzpatrick, Go Bot, golang-co...@googlegroups.com

View Change

1 comment:

To view, visit change 256478. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I28b6df5e2523fc2ece6fd8251fcabc83c7c38d89
Gerrit-Change-Number: 256478
Gerrit-PatchSet: 1
Gerrit-Owner: Amit Mittal <mittal...@gmail.com>
Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
Gerrit-CC: Go Bot <go...@golang.org>
Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
Gerrit-Comment-Date: Tue, 22 Sep 2020 18:13:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Amit Mittal (Gerrit)

unread,
Sep 22, 2020, 11:57:13 PM9/22/20
to goph...@pubsubhelper.golang.org, Ian Lance Taylor, Brad Fitzpatrick, Go Bot, golang-co...@googlegroups.com

View Change

2 comments:

  • Patchset:

    • Patch Set #1:

      This isn't on the list of IANA MIME types (https://www.iana.org/assignments/media-types/media-types. […]

      AVIF is latest image format supported built on av1 video foemat, which recently landed in chrome. Support for other browsers is coming soon.
      https://aomediacodec.github.io/av1-avif/
      Without this http.FileServer serve avif files as octet-stream.
      In the link provided I don't see webp also but it is supported in Go code. So I think exception can be made if there is good enough reason. avif is supposed to be successor webp.

    • Patch Set #1:

      AVIF is latest image format supported built on av1 video format, which recently landed in chrome. Support for other browsers is coming soon.
      https://aomediacodec.github.io/av1-avif/
      Without this http.FileServer serve avif files as octet-stream.
      In the link provided I don't see webp also but it is supported in Go code. So I think exception can be made if there is good enough reason. avif is supposed to be successor to webp.

To view, visit change 256478. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I28b6df5e2523fc2ece6fd8251fcabc83c7c38d89
Gerrit-Change-Number: 256478
Gerrit-PatchSet: 1
Gerrit-Owner: Amit Mittal <mittal...@gmail.com>
Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
Gerrit-CC: Go Bot <go...@golang.org>
Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
Gerrit-Comment-Date: Wed, 23 Sep 2020 03:57:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Ian Lance Taylor <ia...@golang.org>
Gerrit-MessageType: comment

Amit Mittal (Gerrit)

unread,
Feb 18, 2021, 2:56:11 AM2/18/21
to goph...@pubsubhelper.golang.org, Ian Lance Taylor, Brad Fitzpatrick, Go Bot, golang-co...@googlegroups.com

Attention is currently required from: Ian Lance Taylor.

View Change

2 comments:

To view, visit change 256478. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I28b6df5e2523fc2ece6fd8251fcabc83c7c38d89
Gerrit-Change-Number: 256478
Gerrit-PatchSet: 1
Gerrit-Owner: Amit Mittal <mittal...@gmail.com>
Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
Gerrit-CC: Go Bot <go...@golang.org>
Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
Gerrit-Comment-Date: Thu, 18 Feb 2021 07:56:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Amit Mittal <mittal...@gmail.com>

Ian Lance Taylor (Gerrit)

unread,
Feb 25, 2021, 11:19:21 AM2/25/21
to Amit Mittal, goph...@pubsubhelper.golang.org, Brad Fitzpatrick, Go Bot, golang-co...@googlegroups.com

Attention is currently required from: Amit Mittal.

Patch set 2:Run-TryBot +1Trust +1

View Change

    To view, visit change 256478. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I28b6df5e2523fc2ece6fd8251fcabc83c7c38d89
    Gerrit-Change-Number: 256478
    Gerrit-PatchSet: 2
    Gerrit-Owner: Amit Mittal <mittal...@gmail.com>
    Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
    Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
    Gerrit-CC: Go Bot <go...@golang.org>
    Gerrit-Attention: Amit Mittal <mittal...@gmail.com>
    Gerrit-Comment-Date: Thu, 25 Feb 2021 16:19:16 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    Tobias Klauser (Gerrit)

    unread,
    Apr 14, 2021, 5:05:17 AM4/14/21
    to Amit Mittal, goph...@pubsubhelper.golang.org, Go Bot, Ian Lance Taylor, Brad Fitzpatrick, golang-co...@googlegroups.com

    Attention is currently required from: Amit Mittal, Ian Lance Taylor.

    View Change

    1 comment:

    • Commit Message:

      • Patch Set #4, Line 7: mime: Add mime type for avif image file format.

        Per https://golang.org/wiki/CommitMessage, please change this to:

          mime: add mime type for avif image file format

        (lower case after colon and no trailing full stop)

        Please also add a newline between the commit subject and the body.

    To view, visit change 256478. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I28b6df5e2523fc2ece6fd8251fcabc83c7c38d89
    Gerrit-Change-Number: 256478
    Gerrit-PatchSet: 4
    Gerrit-Owner: Amit Mittal <mittal...@gmail.com>
    Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
    Gerrit-Reviewer: Go Bot <go...@golang.org>
    Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
    Gerrit-CC: Tobias Klauser <tobias....@gmail.com>
    Gerrit-Attention: Amit Mittal <mittal...@gmail.com>
    Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Comment-Date: Wed, 14 Apr 2021 09:05:11 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Amit Mittal (Gerrit)

    unread,
    Apr 14, 2021, 5:46:35 AM4/14/21
    to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

    Attention is currently required from: Amit Mittal, Ian Lance Taylor.

    Amit Mittal uploaded patch set #5 to this change.

    View Change

    mime: add mime type for avif image file format

    Fixes #44602


    Change-Id: I28b6df5e2523fc2ece6fd8251fcabc83c7c38d89
    ---
    M src/mime/type.go
    1 file changed, 1 insertion(+), 0 deletions(-)

    To view, visit change 256478. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I28b6df5e2523fc2ece6fd8251fcabc83c7c38d89
    Gerrit-Change-Number: 256478
    Gerrit-PatchSet: 5
    Gerrit-Owner: Amit Mittal <mittal...@gmail.com>
    Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
    Gerrit-Reviewer: Go Bot <go...@golang.org>
    Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
    Gerrit-CC: Tobias Klauser <tobias....@gmail.com>
    Gerrit-Attention: Amit Mittal <mittal...@gmail.com>
    Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
    Gerrit-MessageType: newpatchset

    Amit Mittal (Gerrit)

    unread,
    Apr 14, 2021, 5:47:38 AM4/14/21
    to goph...@pubsubhelper.golang.org, Tobias Klauser, Go Bot, Ian Lance Taylor, Brad Fitzpatrick, golang-co...@googlegroups.com

    Attention is currently required from: Tobias Klauser, Ian Lance Taylor.

    View Change

    1 comment:

    • Commit Message:

    To view, visit change 256478. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I28b6df5e2523fc2ece6fd8251fcabc83c7c38d89
    Gerrit-Change-Number: 256478
    Gerrit-PatchSet: 5
    Gerrit-Owner: Amit Mittal <mittal...@gmail.com>
    Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
    Gerrit-Reviewer: Go Bot <go...@golang.org>
    Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
    Gerrit-CC: Tobias Klauser <tobias....@gmail.com>
    Gerrit-Attention: Tobias Klauser <tobias....@gmail.com>
    Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Comment-Date: Wed, 14 Apr 2021 09:47:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Tobias Klauser <tobias....@gmail.com>
    Gerrit-MessageType: comment

    Ian Lance Taylor (Gerrit)

    unread,
    Apr 14, 2021, 3:44:05 PM4/14/21
    to Amit Mittal, goph...@pubsubhelper.golang.org, Tobias Klauser, Go Bot, Brad Fitzpatrick, golang-co...@googlegroups.com

    Attention is currently required from: Tobias Klauser, Amit Mittal.

    Patch set 5:Run-TryBot +1Trust +1

    View Change

      To view, visit change 256478. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: go
      Gerrit-Branch: master
      Gerrit-Change-Id: I28b6df5e2523fc2ece6fd8251fcabc83c7c38d89
      Gerrit-Change-Number: 256478
      Gerrit-PatchSet: 5
      Gerrit-Owner: Amit Mittal <mittal...@gmail.com>
      Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
      Gerrit-Reviewer: Go Bot <go...@golang.org>
      Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
      Gerrit-CC: Tobias Klauser <tobias....@gmail.com>
      Gerrit-Attention: Tobias Klauser <tobias....@gmail.com>
      Gerrit-Attention: Amit Mittal <mittal...@gmail.com>
      Gerrit-Comment-Date: Wed, 14 Apr 2021 19:43:59 +0000

      Ian Lance Taylor (Gerrit)

      unread,
      Apr 14, 2021, 6:02:08 PM4/14/21
      to Amit Mittal, goph...@pubsubhelper.golang.org, Go Bot, Tobias Klauser, Brad Fitzpatrick, golang-co...@googlegroups.com

      Attention is currently required from: Tobias Klauser, Amit Mittal.

      Patch set 5:Code-Review +2

      View Change

        To view, visit change 256478. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: go
        Gerrit-Branch: master
        Gerrit-Change-Id: I28b6df5e2523fc2ece6fd8251fcabc83c7c38d89
        Gerrit-Change-Number: 256478
        Gerrit-PatchSet: 5
        Gerrit-Owner: Amit Mittal <mittal...@gmail.com>
        Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
        Gerrit-Reviewer: Go Bot <go...@golang.org>
        Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
        Gerrit-CC: Tobias Klauser <tobias....@gmail.com>
        Gerrit-Attention: Tobias Klauser <tobias....@gmail.com>
        Gerrit-Attention: Amit Mittal <mittal...@gmail.com>
        Gerrit-Comment-Date: Wed, 14 Apr 2021 22:02:03 +0000

        Michael Knyszek (Gerrit)

        unread,
        Apr 14, 2021, 6:50:06 PM4/14/21
        to Amit Mittal, goph...@pubsubhelper.golang.org, Ian Lance Taylor, Go Bot, Tobias Klauser, Brad Fitzpatrick, golang-co...@googlegroups.com

        Attention is currently required from: Tobias Klauser, Amit Mittal.

        Patch set 5:Trust +1

        View Change

          To view, visit change 256478. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: go
          Gerrit-Branch: master
          Gerrit-Change-Id: I28b6df5e2523fc2ece6fd8251fcabc83c7c38d89
          Gerrit-Change-Number: 256478
          Gerrit-PatchSet: 5
          Gerrit-Owner: Amit Mittal <mittal...@gmail.com>
          Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
          Gerrit-Reviewer: Go Bot <go...@golang.org>
          Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
          Gerrit-Reviewer: Michael Knyszek <mkny...@google.com>
          Gerrit-CC: Tobias Klauser <tobias....@gmail.com>
          Gerrit-Attention: Tobias Klauser <tobias....@gmail.com>
          Gerrit-Attention: Amit Mittal <mittal...@gmail.com>
          Gerrit-Comment-Date: Wed, 14 Apr 2021 22:50:02 +0000

          Ian Lance Taylor (Gerrit)

          unread,
          Apr 14, 2021, 7:26:32 PM4/14/21
          to Amit Mittal, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Michael Knyszek, Go Bot, Tobias Klauser, Brad Fitzpatrick, golang-co...@googlegroups.com

          Ian Lance Taylor submitted this change.

          View Change

          Approvals: Ian Lance Taylor: Looks good to me, approved; Trusted; Run TryBots Michael Knyszek: Trusted Go Bot: TryBots succeeded
          mime: add mime type for avif image file format

          Fixes #44602

          Change-Id: I28b6df5e2523fc2ece6fd8251fcabc83c7c38d89
          Reviewed-on: https://go-review.googlesource.com/c/go/+/256478
          Trust: Ian Lance Taylor <ia...@golang.org>
          Trust: Michael Knyszek <mkny...@google.com>
          Run-TryBot: Ian Lance Taylor <ia...@golang.org>
          TryBot-Result: Go Bot <go...@golang.org>
          Reviewed-by: Ian Lance Taylor <ia...@golang.org>

          ---
          M src/mime/type.go
          1 file changed, 1 insertion(+), 0 deletions(-)

          diff --git a/src/mime/type.go b/src/mime/type.go
          index 6d2b89e..a13aa04 100644
          --- a/src/mime/type.go
          +++ b/src/mime/type.go
          @@ -72,6 +72,7 @@
          ".svg": "image/svg+xml",
          ".wasm": "application/wasm",
          ".webp": "image/webp",
          + ".avif": "image/avif",
          ".xml": "text/xml; charset=utf-8",
          }


          To view, visit change 256478. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: go
          Gerrit-Branch: master
          Gerrit-Change-Id: I28b6df5e2523fc2ece6fd8251fcabc83c7c38d89
          Gerrit-Change-Number: 256478
          Gerrit-PatchSet: 6
          Gerrit-Owner: Amit Mittal <mittal...@gmail.com>
          Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
          Gerrit-Reviewer: Go Bot <go...@golang.org>
          Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
          Gerrit-Reviewer: Michael Knyszek <mkny...@google.com>
          Gerrit-CC: Tobias Klauser <tobias....@gmail.com>
          Gerrit-MessageType: merged
          Reply all
          Reply to author
          Forward
          0 new messages