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;
All credits go to @chenglou for releasing https://www.npmjs.com/package/png-diff I've only changed the diffMetric output.
License
MIT.