From f0871b70e7b06aecd4ed751d570faf2ae8bbd0bb Mon Sep 17 00:00:00 2001 From: David Walker Date: Tue, 12 May 2020 00:11:42 -0700 Subject: [PATCH] Update src/PIL/ImageChops.py Apply wording suggestions about ImageChops.multiply Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com> --- src/PIL/ImageChops.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/PIL/ImageChops.py b/src/PIL/ImageChops.py index 904df484e..c1a2574e4 100644 --- a/src/PIL/ImageChops.py +++ b/src/PIL/ImageChops.py @@ -240,8 +240,10 @@ def subtract_modulo(image1, image2): def logical_and(image1, image2): """Logical AND between two images. - Both of the images must have mode "1". For an AND in RGB mode, use a - multiply() by a black-and-white mask. + Both of the images must have mode "1". If you would like to perform a + logical AND on an image with a mode other than "1", try + :py:meth:`~PIL.ImageChops.multiply` instead, using a black-and-white mask + as the second image. .. code-block:: python