Skip to content

Commit f0871b7

Browse files
d0sbootsradarhere
andauthored
Update src/PIL/ImageChops.py
Apply wording suggestions about ImageChops.multiply Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
1 parent cc39dba commit f0871b7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/PIL/ImageChops.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,10 @@ def subtract_modulo(image1, image2):
240240
def logical_and(image1, image2):
241241
"""Logical AND between two images.
242242
243-
Both of the images must have mode "1". For an AND in RGB mode, use a
244-
multiply() by a black-and-white mask.
243+
Both of the images must have mode "1". If you would like to perform a
244+
logical AND on an image with a mode other than "1", try
245+
:py:meth:`~PIL.ImageChops.multiply` instead, using a black-and-white mask
246+
as the second image.
245247
246248
.. code-block:: python
247249

0 commit comments

Comments
 (0)