FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-85957: Add missing MIME types for images with RFCs by hugovk · Pull Request #126966 · python/cpython · GitHub

/ cpython Public

gh-85957: Add missing MIME types for images with RFCs - #126966

Merged
hugovk merged 7 commits into
python:mainfrom
hugovk:85957-add-jp2-mimetype
Nov 18, 2024
Merged

gh-85957: Add missing MIME types for images with RFCs#126966
hugovk merged 7 commits into
python:mainfrom
hugovk:85957-add-jp2-mimetype

Conversation

hugovk commented Nov 18, 2024
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

Closes #85957.

I checked the list of MIME types with RFCs at https://www.iana.org/assignments/media-types/media-types.xhtml#image

Already present:

Name Template Reference
bmp image/bmp RFC7903
gif image/gif RFC2045 RFC2046
ief image/ief RFC1314
jpeg image/jpeg RFC2045 RFC2046
tiff image/tiff RFC3302
webp image/webp RFC-zern-webp-15

Added in this PR:

Name Template Reference
emf image/emf RFC7903
fits image/fits RFC4047
g3fax image/g3fax RFC1494
jp2 image/jp2 RFC3745
jpm image/jpm RFC3745
jpx image/jpx RFC3745 ISO-IEC_JTC_1_SC_29_WG_1
t38 image/t38 RFC3362
tiff-fx image/tiff-fx RFC3950
wmf image/wmf RFC7903

Omitted:

Name Template Reference
example image/example RFC4735
x-emf - DEPRECATED in favor of image/emf image/x-emf RFC7903
x-wmf - DEPRECATED in favor of image/wmf image/x-wmf RFC7903

📚 Documentation preview 📚: https://cpython-previews--126966.org.readthedocs.build/

hugovk added the type-feature A feature request or enhancement label Nov 18, 2024
hugovk requested a review from a team as a code owner November 18, 2024 13:29

asvetlov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM!

hugovk merged commit 933f21c into python:main Nov 18, 2024
hugovk deleted the 85957-add-jp2-mimetype branch November 18, 2024 18:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mimetypes module does not recognize jp2 type

2 participants


Back | FazBrowse Home | New Git URL