Skip to content

Commit e2018a6

Browse files
bgilbertradarhere
andcommitted
Add release note for JPEG keep_rgb option
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
1 parent a5fab5f commit e2018a6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/releasenotes/10.2.0.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ Added DdsImagePlugin enums
4646
:py:class:`~PIL.DdsImagePlugin.DXGI_FORMAT` and :py:class:`~PIL.DdsImagePlugin.D3DFMT`
4747
enums have been added to :py:class:`PIL.DdsImagePlugin`.
4848

49+
JPEG RGB color space
50+
^^^^^^^^^^^^^^^^^^^^
51+
52+
When saving JPEG files, ``keep_rgb`` can now be set to ``True``. This will store RGB
53+
images in the RGB color space instead of being converted to YCbCr automatically by
54+
libjpeg. When this option is enabled, attempting to chroma-subsample RGB images with
55+
the ``subsampling`` option will raise an :py:exc:`OSError`.
56+
4957
JPEG restart marker interval
5058
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5159

0 commit comments

Comments
 (0)