diff options
| author | Ilya Stepin <stepinilya@gmail.com> | 2021-03-20 23:06:27 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-20 23:06:27 (GMT) |
| commit | 20a5b7e986377bdfd929d7e8c4e3db5847dfdb2d (patch) | |
| tree | 480fc6501d4102e1d5658119f54485a21e330bd6 | |
| parent | b05b48dd7ab68bf0046356f2abd6d7fe3b5b3d77 (diff) | |
| download | cpython-20a5b7e986377bdfd929d7e8c4e3db5847dfdb2d.zip cpython-20a5b7e986377bdfd929d7e8c4e3db5847dfdb2d.tar.gz cpython-20a5b7e986377bdfd929d7e8c4e3db5847dfdb2d.tar.bz2 | |
bpo-43542: Add heif/heic formats in mimetypes (GH-24917)
* bpo-43542: Add heif/heic formats in mimetypes
Add HEIF and HEIC format to list of media types. It has IANA registration.
IANA: https://www.iana.org/assignments/media-types/image/heic
HEIF Github: https://github.com/nokiatech/heif
Co-authored-by: Gregory P. Smith <greg@krypto.org>
| -rw-r--r-- | Lib/mimetypes.py | 2 | ||||
| -rw-r--r-- | Misc/NEWS.d/next/Library/2021-03-20-15-43-25.bpo-43542.6bt2F6.rst | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index d2c8ac7..018793c 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -505,6 +505,8 @@ def _default_mime_types(): '.jpg' : 'image/jpeg', '.jpe' : 'image/jpeg', '.jpeg' : 'image/jpeg', + '.heic' : 'image/heic', + '.heif' : 'image/heif', '.png' : 'image/png', '.svg' : 'image/svg+xml', '.tiff' : 'image/tiff', diff --git a/Misc/NEWS.d/next/Library/2021-03-20-15-43-25.bpo-43542.6bt2F6.rst b/Misc/NEWS.d/next/Library/2021-03-20-15-43-25.bpo-43542.6bt2F6.rst new file mode 100644 index 0000000..370e520 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-03-20-15-43-25.bpo-43542.6bt2F6.rst @@ -0,0 +1 @@ +``image/heic`` and ``image/heif`` were added to :mod:`mimetypes`. |
