From 95e7d7d3eb7f025d9ef35b705cb239ba2adf8e2b Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Wed, 13 Dec 2023 18:27:55 -0600 Subject: [PATCH] Add release note for JPEG keep_rgb option --- docs/releasenotes/10.2.0.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/releasenotes/10.2.0.rst b/docs/releasenotes/10.2.0.rst index 9883f10baf3..51d28b1e489 100644 --- a/docs/releasenotes/10.2.0.rst +++ b/docs/releasenotes/10.2.0.rst @@ -46,6 +46,14 @@ Added DdsImagePlugin enums :py:class:`~PIL.DdsImagePlugin.DXGI_FORMAT` and :py:class:`~PIL.DdsImagePlugin.D3DFMT` enums have been added to :py:class:`PIL.DdsImagePlugin`. +JPEG RGB color space +^^^^^^^^^^^^^^^^^^^^ + +When saving JPEG files, ``keep_rgb`` can now be set to ``True`` to store RGB images in +the RGB color space instead of converting them to YCbCr. When this option is enabled, +attempting to chroma-subsample RGB images with the ``subsampling`` option will result +in an error. + JPEG restart marker interval ^^^^^^^^^^^^^^^^^^^^^^^^^^^^