Skip to content

Commit

Permalink
Pillow: ImageOps.autocontrast can set low and high cutoffs separately (
Browse files Browse the repository at this point in the history
…python#11408)

ImageOps.autocontrast can set low and high cutoffs separately
  • Loading branch information
radarhere authored Feb 12, 2024
1 parent 238772a commit 3e021f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stubs/Pillow/PIL/ImageOps.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ class _Deformer(Protocol):
def getmesh(self, __image: Image): ...

def autocontrast(
image: Image, cutoff: int = 0, ignore: int | None = None, mask: Image | None = None, preserve_tone: bool = False
image: Image,
cutoff: int | tuple[int, int] = 0,
ignore: int | None = None,
mask: Image | None = None,
preserve_tone: bool = False,
) -> Image: ...
def colorize(
image: Image,
Expand Down

0 comments on commit 3e021f3

Please sign in to comment.