Document Image.quantize method defaults [ci skip]

The method uses different defaults for different image modes.
This commit is contained in:
gofr 2021-02-06 21:06:56 +01:00
parent c377d8ca88
commit d273d08949

View File

@ -1053,12 +1053,10 @@ class Image:
of colors. of colors.
:param colors: The desired number of colors, <= 256 :param colors: The desired number of colors, <= 256
:param method: :data:`MEDIANCUT` (median cut), :param method: :data:`MEDIANCUT` (default),
:data:`MAXCOVERAGE` (maximum coverage), :data:`MAXCOVERAGE`,
:data:`FASTOCTREE` (fast octree), :data:`FASTOCTREE` (default for RGBA images),
:data:`LIBIMAGEQUANT` (libimagequant; check support using :data:`LIBIMAGEQUANT`.
:py:func:`PIL.features.check_feature`
with ``feature="libimagequant"``).
:param kmeans: Integer :param kmeans: Integer
:param palette: Quantize to the palette of given :param palette: Quantize to the palette of given
:py:class:`PIL.Image.Image`. :py:class:`PIL.Image.Image`.