pixelmatch – JavaScript Pixel-Level Image Comparison Library

pixelmatch is the smallest, simplest and fastest JavaScript pixel-level image comparison library, originally created to compare screenshots in tests.

Unlike these libraries, pixelmatch is around 90 lines of code, has no dependencies, and works on raw arrays of image data, so it’s blazing fast and can be used in any environment.