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

Project Samples

Project Activity

See All Activity >

License

ISC License

Follow pixelmatch

pixelmatch Web Site

Other Useful Business Software
Cut Cloud Costs with Google Compute Engine Icon
Cut Cloud Costs with Google Compute Engine

Save up to 91% with Spot VMs and get automatic sustained-use discounts. One free VM per month, plus $300 in credits.

Save on compute costs with Compute Engine. Reduce your batch jobs and workload bill 60-91% with Spot VMs. Compute Engine's committed use offers customers up to 70% savings through sustained use discounts. Plus, you get one free e2-micro VM monthly and $300 credit to start.
Try Compute Engine
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of pixelmatch!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Libraries, JavaScript Image Recognition Software

Registered

2021-12-07