Document supported quantization methods for RGBA images

This commit is contained in:
Andrew Murray 2021-03-22 19:21:31 +11:00
parent ab56edb49f
commit 0ff9879171
2 changed files with 6 additions and 4 deletions

View File

@ -486,11 +486,12 @@ Used to specify the quantization method to use for the :meth:`~Image.quantize` m
.. data:: MEDIANCUT
Median cut. Default method, except for RGBA images.
Median cut. Default method, except for RGBA images. This method does not support
RGBA images.
.. data:: MAXCOVERAGE
Maximum coverage.
Maximum coverage. This method does not support RGBA images.
.. data:: FASTOCTREE

View File

@ -1062,8 +1062,9 @@ class Image:
By default, :data:`MEDIANCUT` will be used.
The exception to this is RGBA images. RGBA images use
:data:`FASTOCTREE` by default instead.
The exception to this is RGBA images. :data:`MEDIANCUT` and
:data:`MAXCOVERAGE` do not support RGBA images, so
:data:`FASTOCTREE` is used by default instead.
:param kmeans: Integer
:param palette: Quantize to the palette of given
:py:class:`PIL.Image.Image`.