6 ms·
ImageMagick already ships the `compare` command [0] which does exactly this. It also accepts a bunch of CLI flags such as -fuzz to consider colors within a cer
by _jomo 10y ago
ImageMagick already ships the `compare` command [0] which does exactly this.
It also accepts a bunch of CLI flags such as -fuzz to consider colors within a certain distance as equal. That flag is very useful when dealing with JPG or similar compression that slightly alters pixels, so you can ignore these barely visible differences and focus on the 'real' differences.
0: http://www.imagemagick.org/script/compare.php http://www.imagemagick.org/script/compare.php
- dmd 10y agoThis literally just calls ImageMagick.