Add release note for JPEG keep_rgb option

Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
This commit is contained in:
Benjamin Gilbert 2023-12-13 18:27:55 -06:00
parent a5fab5fc0b
commit e2018a6697

View File

@ -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``. This will store RGB
images in the RGB color space instead of being converted to YCbCr automatically by
libjpeg. When this option is enabled, attempting to chroma-subsample RGB images with
the ``subsampling`` option will raise an :py:exc:`OSError`.
JPEG restart marker interval
^^^^^^^^^^^^^^^^^^^^^^^^^^^^