mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
versionadded directive and releasenotes added
This commit is contained in:
parent
694d70bdc3
commit
9b8f7c2a8f
|
@ -73,6 +73,15 @@ be specified through a keyword argument::
|
|||
|
||||
im.save("out.tif", icc_profile=...)
|
||||
|
||||
|
||||
ImageOps.autocontrast: tone preserving option
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
The default behaviour of the :py:meth:`~PIL.ImageOps.autocontrast` is to normalize separate
|
||||
histograms for each color channel, it changes tone of the image. Added ``preserve_tone``
|
||||
argument which avoids changing the tone of the image using one luminance histogram for all
|
||||
channels.
|
||||
|
||||
Security
|
||||
========
|
||||
|
||||
|
|
|
@ -78,6 +78,9 @@ def autocontrast(image, cutoff=0, ignore=None, mask=None, preserve_tone=False):
|
|||
within the mask. If no mask is given the entire image is used
|
||||
for histogram computation.
|
||||
:param preserve_tone: Preserve image tone in Photoshop-like style autocontrast.
|
||||
|
||||
.. versionadded:: 1.1.5
|
||||
|
||||
:return: An image.
|
||||
"""
|
||||
if preserve_tone:
|
||||
|
|
Loading…
Reference in New Issue
Block a user