mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 21:24:31 +03:00
Documented default quantization method
This commit is contained in:
parent
aa35f6b572
commit
ab56edb49f
|
@ -486,15 +486,15 @@ Used to specify the quantization method to use for the :meth:`~Image.quantize` m
|
||||||
|
|
||||||
.. data:: MEDIANCUT
|
.. data:: MEDIANCUT
|
||||||
|
|
||||||
Median cut
|
Median cut. Default method, except for RGBA images.
|
||||||
|
|
||||||
.. data:: MAXCOVERAGE
|
.. data:: MAXCOVERAGE
|
||||||
|
|
||||||
Maximum coverage
|
Maximum coverage.
|
||||||
|
|
||||||
.. data:: FASTOCTREE
|
.. data:: FASTOCTREE
|
||||||
|
|
||||||
Fast octree
|
Fast octree. Default method for RGBA images.
|
||||||
|
|
||||||
.. data:: LIBIMAGEQUANT
|
.. data:: LIBIMAGEQUANT
|
||||||
|
|
||||||
|
|
|
@ -1059,6 +1059,11 @@ class Image:
|
||||||
:data:`LIBIMAGEQUANT` (libimagequant; check support using
|
:data:`LIBIMAGEQUANT` (libimagequant; check support using
|
||||||
:py:func:`PIL.features.check_feature`
|
:py:func:`PIL.features.check_feature`
|
||||||
with ``feature="libimagequant"``).
|
with ``feature="libimagequant"``).
|
||||||
|
|
||||||
|
By default, :data:`MEDIANCUT` will be used.
|
||||||
|
|
||||||
|
The exception to this is RGBA images. RGBA images use
|
||||||
|
:data:`FASTOCTREE` by default instead.
|
||||||
: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`.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user