← Browse all tools

Go Back
Report Abuse

pixelmatch

Pixel-level image comparison library

Tool overview

pixelmatch is a small and fast JavaScript library for pixel-level image comparison, originally created to compare screenshots in tests. It returns the number of different pixels and can write a diff image highlighting them.

It detects anti-aliased pixels so that they are not reported as differences, and measures colour differences perceptually, with a configurable threshold. It has no dependencies, works on raw typed arrays of image data, and runs in Node.js and in browsers; a command-line interface and an official C++ port are also available. It is used as the comparison engine of several visual testing tools.

pixelmatch is developed by Mapbox and is free and open source under the ISC licence.

Screenshots & video

Pixelmatch
Pixelmatch
Pixelmatch
Pixelmatch
Pixelmatch
Pixelmatch

Community reviews

Login to Write Your Review

There are no reviews yet.

Source & attribution

Original contributor
Jean-Baptiste CROUIGNEAU
External references
https://github.com/mapbox/pixelmatch