Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Hands-on the ImageChops Class in Pillow in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

ImageChops.difference

ImageChops.difference calcualte the difference image of 2 images. Notice that the type/dimension of the 2 images must match.

<PIL.PngImagePlugin.PngImageFile image mode=RGB size=37x54 at 0x7F63C7075F60>
<PIL.Image.Image image mode=1 size=37x54 at 0x7F63C7013358>
<PIL.Image.Image image mode=1 size=37x54 at 0x7F63C7013828>
<PIL.Image.Image image mode=1 size=37x54 at 0x7F63C7013978>