Skip to content

Commit b835143

Browse files
committed
Add image/jxl to mimetypes
1 parent 012c498 commit b835143

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/mimetypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ def _default_mime_types():
608608
'.jpeg' : 'image/jpeg',
609609
'.jpm' : 'image/jpm',
610610
'.jpx' : 'image/jpx',
611+
'.jxl' : 'image/jxl',
611612
'.heic' : 'image/heic',
612613
'.heif' : 'image/heif',
613614
'.png' : 'image/png',

Lib/test/test_mimetypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ def check_extensions():
270270
("image/jp2", ".jp2"),
271271
("image/jpeg", ".jpg"),
272272
("image/jpm", ".jpm"),
273+
("image/jxl", ".jxl"),
273274
("image/t38", ".t38"),
274275
("image/tiff", ".tiff"),
275276
("image/tiff-fx", ".tfx"),
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Mime type ``image/jxl`` is now supported by :mod:`mimetypes`.

0 commit comments

Comments
 (0)