Skip to content

Commit a92a664

Browse files
authored
Merge pull request #8699 from radarhere/mozjpeg
2 parents 4f7510b + 2842977 commit a92a664

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docs/reference/features.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Feature version numbers are available only where stated.
5454
Support for the following features can be checked:
5555

5656
* ``libjpeg_turbo``: (compile time) Whether Pillow was compiled against the libjpeg-turbo version of libjpeg. Compile-time version number is available.
57+
* ``mozjpeg``: (compile time) Whether Pillow was compiled against the MozJPEG version of libjpeg. Compile-time version number is available.
5758
* ``zlib_ng``: (compile time) Whether Pillow was compiled against the zlib-ng version of zlib. Compile-time version number is available.
5859
* ``raqm``: Raqm library, required for ``ImageFont.Layout.RAQM`` in :py:func:`PIL.ImageFont.truetype`. Run-time version number is available for Raqm 0.7.0 or newer.
5960
* ``libimagequant``: (compile time) ImageQuant quantization support in :py:func:`PIL.Image.Image.quantize`. Run-time version number is available.

docs/releasenotes/11.2.0.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,15 @@ TODO
4444
API Additions
4545
=============
4646

47-
TODO
48-
^^^^
47+
Check for MozJPEG
48+
^^^^^^^^^^^^^^^^^
4949

50-
TODO
50+
You can check if Pillow has been built against the MozJPEG version of the
51+
libjpeg library, and what version of MozJPEG is being used::
52+
53+
from PIL import features
54+
features.check_feature("mozjpeg") # True or False
55+
features.version_feature("mozjpeg") # "4.1.1" for example, or None
5156

5257
Other Changes
5358
=============

0 commit comments

Comments
 (0)