PNG Diff
Small PNG diff utility, written in pure JS for Node.
npm install png-diff
Usage
(Check out the example folder.)
Both methods take two image paths/streams/buffers as input.
var fs = ;var PNGDiff = ; var image2Stream = fs;PNGDiff; var image1Buffer = fs;PNGDiff;
Second format:
var image2Stream = fs;// output identical pixels as transparent instead of highlighting the diff// (default: false)PNGDiff;
License
MIT.