diff --git a/docs/reference/ImageMath.rst b/docs/reference/ImageMath.rst index 026c7cd9e..5fd61f881 100644 --- a/docs/reference/ImageMath.rst +++ b/docs/reference/ImageMath.rst @@ -7,9 +7,9 @@ The :py:mod:`~PIL.ImageMath` module can be used to evaluate “image expressions”, that can take a number of images and generate a result. -In the current version, :py:mod:`~PIL.ImageMath` only supports single-layer images. To -process multi-band images, use the :py:meth:`~PIL.Image.Image.split` method or -:py:func:`~PIL.Image.merge` function. +:py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band +images, use the :py:meth:`~PIL.Image.Image.split` method or :py:func:`~PIL.Image.merge` +function. 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. :py:meth:`~lambda_eval` is a more secure alternative. - In the current version, :py:mod:`~PIL.ImageMath` only supports - single-layer images. To process multi-band images, use the - :py:meth:`~PIL.Image.Image.split` method or :py:func:`~PIL.Image.merge` - function. + :py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band + images, use the :py:meth:`~PIL.Image.Image.split` method or + :py:func:`~PIL.Image.merge` function. :param expression: A string which uses the standard Python expression syntax. In addition to the standard operators, you can diff --git a/src/PIL/ImageMath.py b/src/PIL/ImageMath.py index 5ed9e08ad..2ffebbe71 100644 --- a/src/PIL/ImageMath.py +++ b/src/PIL/ImageMath.py @@ -242,10 +242,9 @@ def lambda_eval(expression: Callable[[dict[str, Any]], Any], """ Returns the result of an image function. - In the current version, :py:mod:`~PIL.ImageMath` only supports - single-layer images. To process multi-band images, use the - :py:meth:`~PIL.Image.Image.split` method or :py:func:`~PIL.Image.merge` - function. + :py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band + images, use the :py:meth:`~PIL.Image.Image.split` method or + :py:func:`~PIL.Image.merge` function. :param expression: A function that receives a dictionary. :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. :py:meth:`~lambda_eval` is a more secure alternative. - In the current version, :py:mod:`~PIL.ImageMath` only supports - single-layer images. To process multi-band images, use the - :py:meth:`~PIL.Image.Image.split` method or :py:func:`~PIL.Image.merge` - function. + :py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band + images, use the :py:meth:`~PIL.Image.Image.split` method or + :py:func:`~PIL.Image.merge` function. :param expression: A string containing a Python-style expression. :param options: Values to add to the evaluation context. You