Pixelmatch 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:
-
- so it's blazing fast and can be used in any environment (Node or browsers).
- ### Node.js
Basic usage or getting-started notes:
- ## Example output
- ## Example usage
- bash
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/mapbox/pixelmatch/HEAD/README.md