image-area-diff
A simple and straightforward JavaScript module to compare images conditionally by areas. Works with PNG files only.
Used to detect differences between image but not everywhere in the image, with this module you can configure which areas should trigger differences or not. Features whitelisting spaces that are supposed to be different and only mark differences in the other parts of the image.
Especially useful to filter 'dinamic' parts of screenshots and compare the rest.
API / usage
var imageDiff = ; ;
Install
Install with NPM:
npm install image-area-diff
To build a binary executable version (after creating and testing your usage), use the API to configure the usage as you like, then:
npm install -g pkgpkg index.js --target host --output app.exe
Changelog
Special thanks
Special thanks to mapbox's pixelmatch module for which my module is heavily inspired on.