classification
Title: Add image/webp to list of media types in mimetypes.py
Type: enhancement Stage: patch review
Components: Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: waicalibre, xtreak
Priority: normal Keywords: patch

Created on 2020-10-16 05:34 by waicalibre, last changed 2020-10-17 11:34 by waicalibre.

Pull Requests
URL Status Linked Edit
PR 22718 open waicalibre, 2020-10-16 05:36
Messages (3)
msg378702 - (view) Author: (waicalibre) * Date: 2020-10-16 05:34
WebP is an open image format that's existed for 10 years and is supported by most modern web browsers: https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types#WebP. It should be in the list of media types.
msg378705 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2020-10-16 06:58
This seems to be a duplicate of https://bugs.python.org/issue38902
msg378808 - (view) Author: (waicalibre) * Date: 2020-10-17 11:34
Yep, looks like this issue is an exact duplicate. Sorry about that.
It looks like WebP is still not registered with IANA so it can't be added to the list according to this comment: https://github.com/python/cpython/blob/master/Lib/mimetypes.py#L407. It could still be added though to the common-but-not-official list of media types here: https://github.com/python/cpython/blob/master/Lib/mimetypes.py#L550.

Could that happen here or would that have to happen with a new issue and pull request, or in the issue that this issue is a duplicate of? Not really sure of the protocol here.
History
Date User Action Args
2020-10-17 11:34:18waicalibresetmessages: + msg378808
2020-10-16 06:58:44xtreaksetnosy: + xtreak
messages: + msg378705
2020-10-16 05:36:08waicalibresetkeywords: + patch
stage: patch review
pull_requests: + pull_request21686
2020-10-16 05:34:51waicalibrecreate