mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Document supported quantization methods for RGBA images
This commit is contained in:
parent
ab56edb49f
commit
0ff9879171
|
@ -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
|
||||
|
||||
|
|
|
@ -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`.
|
||||
|
|
Loading…
Reference in New Issue
Block a user