The smallest, simplest and fastest JavaScript pixel-level image comparison library, originally created to compare screenshots in tests. Features accurate anti-aliased pixels detection and perceptual color difference metrics. Inspired by Resemble.js and Blink-diff. Unlike these libraries, pixelmatch is around 150 lines of code, has no dependencies, and works on raw typed arrays of image data, so it's blazing fast and can be used in any environment (Node or browsers). Compares two images, writes the output diff and returns the number of mismatched pixels.
Features
- Compare images
- Write the output diff of different images
- Returns the number of mismatched pixels in images
- Pixelmatch comes with a binary that works with PNG images
- Use in the browser from a CDN
- All images need to have the same dimensions
License
ISC LicenseFollow pixelmatch
Other Useful Business Software
Already Paying for an RMM? Get 50% Off Splashtop AEM
Automated OS and third-party patching for Windows and macOS, CVE prioritization with AI patch summaries, and built-in remote control that also supports Linux. Qualifying organizations switching from another RMM get up to 50% off year one.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of pixelmatch!