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