Skip to content

Commit 20a5b7e

Browse files
martblngpshead
andauthored
bpo-43542: Add heif/heic formats in mimetypes (pythonGH-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 <[email protected]>
1 parent b05b48d commit 20a5b7e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Lib/mimetypes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,8 @@ def _default_mime_types():
505505
'.jpg' : 'image/jpeg',
506506
'.jpe' : 'image/jpeg',
507507
'.jpeg' : 'image/jpeg',
508+
'.heic' : 'image/heic',
509+
'.heif' : 'image/heif',
508510
'.png' : 'image/png',
509511
'.svg' : 'image/svg+xml',
510512
'.tiff' : 'image/tiff',
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
``image/heic`` and ``image/heif`` were added to :mod:`mimetypes`.

0 commit comments

Comments
 (0)