The :pyImageChops
module contains a number of arithmetical image operations, called channel operations (“chops”). These can be used for various purposes, including special effects, image compositions, algorithmic painting, and more.
For more pre-made operations, see :pyImageOps
.
At this time, most channel operations are only implemented for 8-bit images (e.g. “L” and “RGB”).
Most channel operations take one or two image arguments and returns a new image. Unless otherwise noted, the result of a channel operation is always clipped to the range 0 to MAX (which is 255 for all modes supported by the operations in this module).
PIL.ImageChops.add
PIL.ImageChops.add_modulo
PIL.ImageChops.blend
PIL.ImageChops.composite
PIL.ImageChops.constant
PIL.ImageChops.darker
PIL.ImageChops.difference
PIL.ImageChops.duplicate
PIL.ImageChops.invert
PIL.ImageChops.lighter
PIL.ImageChops.logical_and
PIL.ImageChops.logical_or
PIL.ImageChops.multiply
PIL.ImageChops.offset
PIL.ImageChops.screen
PIL.ImageChops.subtract
PIL.ImageChops.subtract_modulo