Merge pull request #3397 from eseifert/fix-image-convert-docs-on-bilevel

Fixed documentation on bilevel conversion
This commit is contained in:
Hugo 2018-10-05 13:48:33 +03:00 committed by GitHub
commit e9221cf84f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -873,9 +873,9 @@ class Image(object):
The default method of converting a greyscale ("L") or "RGB"
image into a bilevel (mode "1") image uses Floyd-Steinberg
dither to approximate the original image luminosity levels. If
dither is NONE, all non-zero values are set to 255 (white). To
use other thresholds, use the :py:meth:`~PIL.Image.Image.point`
method.
dither is NONE, all values larger than 128 are set to 255 (white),
all other values to 0 (black). To use other thresholds, use the
:py:meth:`~PIL.Image.Image.point` method.
When converting from "RGBA" to "P" without a **matrix** argument,
this passes the operation to :py:meth:`~PIL.Image.Image.quantize`,