classification
Title: image/webp support in mimetypes
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: DahlitzFlorian, leecatball, xtreak
Priority: normal Keywords:

Created on 2019-11-23 22:33 by leecatball, last changed 2019-12-27 07:20 by leecatball.

Messages (4)
msg357386 - (view) Author: Lee Ball (leecatball) Date: 2019-11-23 22:33
WebP is currently missing from the list of supported mimetypes.

It's an open source image format, using VP8 or VP8L for image data and RIFF for containers.

Previously, adding webp support was considered in 2011, but wasn't well supported at the time: ( https://bugs.python.org/issue11362 ). In 2019, WebP now enjoys support in major browsers and OSes. Its sister video format WebM was added to mimetypes in 2016 ( https://bugs.python.org/issue16329 ) and has similar support to WebP.

WebP homepage: https://developers.google.com/speed/webp
WebP source: https://chromium.googlesource.com/webm/libwebp/
RIFF container spec: https://developers.google.com/speed/webp/docs/riff_container
VP8 format spec: https://datatracker.ietf.org/doc/rfc6386/
msg358862 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2019-12-25 13:14
Similar to previous discussions having an IANA registration would improve the acceptance of the patch to add it. It's still not listed at https://www.iana.org/assignments/media-types/media-types.xhtml
msg358902 - (view) Author: Lee Ball (leecatball) Date: 2019-12-27 07:19
Okay, I've opened a bug with WebP team regarding IANA registration: https://bugs.chromium.org/p/webp/issues/detail?id=448

For what its worth, WebM was added without an IANA registration as a de facto standard. Approval was given in this 2014 comment: https://bugs.python.org/issue16329

To help support the recognition of WebP as a de facto standard, the image format is currently seeing about the same amount of usage on the web as BMP images, and has seen sharp growth this year, approximately tripling in usage. Data from W3: https://w3techs.com/technologies/details/im-webp

Please let me know if there's any data I can provide, or anyone specific I should contact regarding approval.
msg358903 - (view) Author: Lee Ball (leecatball) Date: 2019-12-27 07:20
Sorry, amendment to my last comment: the WebM approval without IANA registration was in msg232095 of https://bugs.python.org/issue16329
History
Date User Action Args
2019-12-27 07:20:47leecatballsetmessages: + msg358903
2019-12-27 07:19:29leecatballsetmessages: + msg358902
2019-12-25 13:14:57xtreaksetnosy: + xtreak
messages: + msg358862
2019-11-29 21:21:27DahlitzFloriansetnosy: + DahlitzFlorian
2019-11-23 22:33:02leecatballcreate