Skip to content

Commit 73490e1

Browse files
committed
Mention Pillow 11.3.0 behaviour
1 parent 1c70e71 commit 73490e1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/deprecations.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ Image.fromarray mode parameter
3535

3636
.. deprecated:: 11.3.0
3737

38-
Using the ``mode`` parameter in :py:meth:`~PIL.Image.fromarray()` to change data types
39-
has been deprecated. Since pixel values do not contain information about palettes or
40-
color spaces, the parameter can still be used to place grayscale L mode data within a
41-
P mode image, or read RGB data as YCbCr for example. If omitted, the mode will be
42-
automatically determined from the object's shape and type.
38+
Using the ``mode`` parameter in :py:meth:`~PIL.Image.fromarray()` was deprecated in
39+
Pillow 11.3.0. In Pillow 12.0.0, this was partially reverted, and it is now only
40+
deprecated when changing data types. Since pixel values do not contain information
41+
about palettes or color spaces, the parameter can still be used to place grayscale L
42+
mode data within a P mode image, or read RGB data as YCbCr for example. If omitted, the
43+
mode will be automatically determined from the object's shape and type.
4344

4445
Saving I mode images as PNG
4546
^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)