"cutoff" can also be a float

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Hugo van Kemenade 2020-08-10 14:14:12 +03:00 committed by GitHub
parent 9df91911d8
commit ecc9cf3d73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ ImageOps.autocontrast cutoffs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Previously, the ``cutoff`` parameter of :py:func:`.ImageOps.autocontrast` could only Previously, the ``cutoff`` parameter of :py:func:`.ImageOps.autocontrast` could only
be a single integer, used as the percent to cut off from the histogram on the low and be a single number, used as the percent to cut off from the histogram on the low and
high ends. high ends.
Now, it can also be a tuple ``(low, high)``. Now, it can also be a tuple ``(low, high)``.