CLI tool for comparing images
CLI tool for comparing images
Installation
Install this tool using pip
:
Image diff
To generate an image showing the difference between two images:
image-diff first.jpg second.jpg -o diff.png
Count differing pixels
To count the number of pixels that have changed, use image-diff count
:
image-diff first.jpg second.jpg
This will output a number followed by a newline.
Compile an image
The image-diff compile
command exists mainly to make this tool easier to test.
It can be used to compile an image from a JSON definition – for example: