Pixelmatch Pixel-Level Image Comparison Library by Mapbox
Pixelmatch is the smallest, simplest, and fastest JavaScript pixel-level image comparison library by Mapbox. It features anti-aliased pixel detection and perceptual color difference metrics, making it ideal for visual regression testing in CI/CD pipelines.
Installation
Use the upstream install or setup path that matches your environment:
- npm install pixelmatch
Requirements and caveats from upstream:
Basic usage or getting-started notes:
Example output
Example usage
bash
Extracted from upstream docs: https://raw.githubusercontent.com/mapbox/pixelmatch/HEAD/README.md