This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add image/webp to list of media types in mimetypes.py
Type: enhancement Stage: resolved
Components: Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Support webp and avif image formats in mimetypes
View: 45639
Assigned To: Nosy List: waicalibre, xtreak
Priority: normal Keywords: patch

Created on 2020-10-16 05:34 by waicalibre, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 22718 closed 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
2022-04-11 14:59:36adminsetgithub: 86215
2022-02-02 02:51:57eric.araujosetsuperseder: image/webp support in mimetypes -> Support webp and avif image formats in mimetypes
2020-11-04 02:43:33methanesetstatus: open -> closed
stage: patch review -> resolved
2020-11-04 02:39:45methanesetresolution: duplicate
superseder: image/webp support in mimetypes
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