node-image-compare-promise

1.1.0 • Public • Published

node-image-compare-promise

Compares images returning a promise. Uses node-resemble-js internally.

Install with:

npm install --save node-image-compare-promise

And use with:

var compareImages = require('node-image-compare-promise').compareImages;

compareImages('path/to/imageOne.png', 'path/to/imageTwo.png')
    .then(function (data) {
        // data is the result of node-resemble-js' comparison
        // data.misMatchPercentage
        // data.isSameDimensions
        // ...
    });

Check https://www.npmjs.com/package/node-resemble-js for more information.

Dependents (0)

Package Sidebar

Install

npm i node-image-compare-promise

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

14 kB

Total Files

10

Last publish

Collaborators

  • mrp