The picture tag lacks support of "image/apng" as source type
Reported by
lordd....@gmail.com,
Jun 7 2017
|
|||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36 Example URL: Steps to reproduce the problem: Because Chrome now supports APNG, it would be nice to add "image/apng" MIME type support to source tag. The idea is to use the picture tag to display APNG only in those browsers which support it, falling back to GIF otherwise. Please see the attached example. What is the expected behavior? Chrome displays APNG image. What went wrong? Chrome displays GIF image. Does it occur on multiple sites: N/A Is it a problem with a plugin? No Did this work before? No Does this work in other browsers? Yes Chrome version: 59.0.3071.86 Channel: stable OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version: APNG MIME type: https://wiki.mozilla.org/APNG_Specification#MIME_type Attached example works in Firefox.
,
Jun 9 2017
This seems more lika a feature request .. @lordd.csc-- Could you please confirm us if this is a feature request or if you have seen this working earlier in chrome. Thanks!
,
Jun 9 2017
No, it did not work before, because Chrome did not support APNG before version 59.
,
Jun 9 2017
Thank you for providing more feedback. Adding requester "hdodda@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jun 12 2017
As per comment #3 this issue seems like a feature request. Untriaged this issue so that it gets addressed. Thank you!!
,
Mar 8 2018
,
Mar 9 2018
Thanks for the report (sorry it took so long to reach an appropriate component =/.) This sounds like a (minor) oversight made when adding the APNG support, so a bug. Should be roughly a oneliner to fix too.
,
Mar 9 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/61d26e9d8d4e15f0ce2653e118933d5d8bac0805 commit 61d26e9d8d4e15f0ce2653e118933d5d8bac0805 Author: Fredrik Söderquist <fs@opera.com> Date: Fri Mar 09 15:15:44 2018 [PE] Add "image/apng" to supported image MIME types Supported for animated PNG (APNG) was added via crbug.com/437662 (commit 7d2b8c45afc9c0230410011293cc2e1dbb8943a7.) The "image/apng" MIME type is included in the "Accept" header for image requests. Add "image/apng" to kSupportedImageTypes to allow things like the <picture> element to work (select an appropriate image based on 'type'.) Add "image/apng" to kPrimaryMappings to allow the MIME type to resolve to a reasonable file extension. Bug: 730588 Change-Id: I070e8b16dc8312552b11dc32e776493b3a5be669 Reviewed-on: https://chromium-review.googlesource.com/957092 Commit-Queue: Fredrik Söderquist <fs@opera.com> Reviewed-by: Asanka Herath <asanka@chromium.org> Cr-Commit-Position: refs/heads/master@{#542113} [modify] https://crrev.com/61d26e9d8d4e15f0ce2653e118933d5d8bac0805/net/base/mime_util.cc [add] https://crrev.com/61d26e9d8d4e15f0ce2653e118933d5d8bac0805/third_party/WebKit/LayoutTests/external/wpt/apng/supported-in-source-type.html [modify] https://crrev.com/61d26e9d8d4e15f0ce2653e118933d5d8bac0805/third_party/WebKit/common/mime_util/mime_util.cc
,
Mar 9 2018
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by nyerramilli@chromium.org
, Jun 8 2017