mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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>
This commit is contained in:
parent
b05b48dd7a
commit
20a5b7e986
2 changed files with 3 additions and 0 deletions
|
@ -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',
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
``image/heic`` and ``image/heif`` were added to :mod:`mimetypes`.
|
Loading…
Add table
Add a link
Reference in a new issue