Skip to content

Commit

Permalink
Merge pull request #6662 from radarhere/pa
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Oct 17, 2022
2 parents 7ff0592 + a4b2572 commit 1f5be89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ def convert(
and the palette can be represented without a palette.
The current version supports all possible conversions between
"L", "RGB" and "CMYK." The ``matrix`` argument only supports "L"
"L", "RGB" and "CMYK". The ``matrix`` argument only supports "L"
and "RGB".
When translating a color image to greyscale (mode "L"),
Expand All @@ -899,6 +899,9 @@ def convert(
this passes the operation to :py:meth:`~PIL.Image.Image.quantize`,
and ``dither`` and ``palette`` are ignored.
When converting from "PA", if an "RGBA" palette is present, the alpha
channel from the image will be used instead of the values from the palette.
:param mode: The requested mode. See: :ref:`concept-modes`.
:param matrix: An optional conversion matrix. If given, this
should be 4- or 12-tuple containing floating point values.
Expand Down

0 comments on commit 1f5be89

Please sign in to comment.