Removed "In the current version"

This commit is contained in:
Andrew Murray 2024-03-26 05:50:08 +11:00 committed by Hugo van Kemenade
parent 27b10c4bd8
commit a7e82cbe9a
2 changed files with 12 additions and 15 deletions

View File

@ -7,9 +7,9 @@
The :py:mod:`~PIL.ImageMath` module can be used to evaluate “image expressions”, that The :py:mod:`~PIL.ImageMath` module can be used to evaluate “image expressions”, that
can take a number of images and generate a result. can take a number of images and generate a result.
In the current version, :py:mod:`~PIL.ImageMath` only supports single-layer images. To :py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band
process multi-band images, use the :py:meth:`~PIL.Image.Image.split` method or images, use the :py:meth:`~PIL.Image.Image.split` method or :py:func:`~PIL.Image.merge`
:py:func:`~PIL.Image.merge` function. function.
Example: Using the :py:mod:`~PIL.ImageMath` module Example: Using the :py:mod:`~PIL.ImageMath` module
-------------------------------------------------- --------------------------------------------------
@ -51,10 +51,9 @@ Example: Using the :py:mod:`~PIL.ImageMath` module
recommended to process expressions without considering this. recommended to process expressions without considering this.
:py:meth:`~lambda_eval` is a more secure alternative. :py:meth:`~lambda_eval` is a more secure alternative.
In the current version, :py:mod:`~PIL.ImageMath` only supports :py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band
single-layer images. To process multi-band images, use the images, use the :py:meth:`~PIL.Image.Image.split` method or
:py:meth:`~PIL.Image.Image.split` method or :py:func:`~PIL.Image.merge` :py:func:`~PIL.Image.merge` function.
function.
:param expression: A string which uses the standard Python expression :param expression: A string which uses the standard Python expression
syntax. In addition to the standard operators, you can syntax. In addition to the standard operators, you can

View File

@ -242,10 +242,9 @@ def lambda_eval(expression: Callable[[dict[str, Any]], Any],
""" """
Returns the result of an image function. Returns the result of an image function.
In the current version, :py:mod:`~PIL.ImageMath` only supports :py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band
single-layer images. To process multi-band images, use the images, use the :py:meth:`~PIL.Image.Image.split` method or
:py:meth:`~PIL.Image.Image.split` method or :py:func:`~PIL.Image.merge` :py:func:`~PIL.Image.merge` function.
function.
:param expression: A function that receives a dictionary. :param expression: A function that receives a dictionary.
:param options: Values to add to the function's dictionary. You :param options: Values to add to the function's dictionary. You
@ -281,10 +280,9 @@ def unsafe_eval(
recommended to process expressions without considering this. recommended to process expressions without considering this.
:py:meth:`~lambda_eval` is a more secure alternative. :py:meth:`~lambda_eval` is a more secure alternative.
In the current version, :py:mod:`~PIL.ImageMath` only supports :py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band
single-layer images. To process multi-band images, use the images, use the :py:meth:`~PIL.Image.Image.split` method or
:py:meth:`~PIL.Image.Image.split` method or :py:func:`~PIL.Image.merge` :py:func:`~PIL.Image.merge` function.
function.
:param expression: A string containing a Python-style expression. :param expression: A string containing a Python-style expression.
:param options: Values to add to the evaluation context. You :param options: Values to add to the evaluation context. You