Merge pull request #5223 from Bitblade/master

Documentation error: Wrong threshold in conversion from L to 1
This commit is contained in:
Andrew Murray 2021-01-27 17:51:10 +11:00 committed by GitHub
commit 428a62c696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -878,7 +878,7 @@ class Image:
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 :data:`NONE`, all values larger than 128 are set to 255 (white),
dither is :data:`NONE`, all values larger than 127 are set to 255 (white),
all other values to 0 (black). To use other thresholds, use the
:py:meth:`~PIL.Image.Image.point` method.