File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,12 @@ Image.fromarray mode parameter
35
35
36
36
.. deprecated :: 11.3.0
37
37
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.
43
44
44
45
Saving I mode images as PNG
45
46
^^^^^^^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments