Skip to content

Commit 1f55caf

Browse files
authored
gh-144212: Add image/jxl to mimetypes (GH-144213)
1 parent 923d9d2 commit 1f55caf

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ mimetypes
606606
* Add ``application/dicom`` MIME type for ``.dcm`` extension. (Contributed by Benedikt Johannes in :gh:`144217`.)
607607
* Add ``application/node`` MIME type for ``.cjs`` extension. (Contributed by John Franey in :gh:`140937`.)
608608
* Add ``application/toml``. (Contributed by Gil Forcada in :gh:`139959`.)
609+
* Add ``image/jxl``. (Contributed by Foolbar in :gh:`144213`.)
609610
* Rename ``application/x-texinfo`` to ``application/texinfo``.
610611
(Contributed by Charlie Lin in :gh:`140165`.)
611612
* Changed the MIME type for ``.ai`` files to ``application/pdf``.

Lib/mimetypes.py

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

Lib/test/test_mimetypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ def check_extensions():
271271
("image/jp2", ".jp2"),
272272
("image/jpeg", ".jpg"),
273273
("image/jpm", ".jpm"),
274+
("image/jxl", ".jxl"),
274275
("image/t38", ".t38"),
275276
("image/tiff", ".tiff"),
276277
("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)