1.2.0 • Published 9 years ago

img-compare v1.2.0

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

#img-compare

Image comparisons without any other system dependencies.

var comp = require("img-compare");

var config = {
    output: "diff.png",
    threshold: 50, // num of pixels allowed to differ    
};

comp(["test/01.png", "test/02.png"], config, function (err, out) {
    if (err) {
        console.log(err.message);
    }
    
    console.log(out); // out.status = fail/success.
                      // out.report = numpix: 1000, outfile: "diff.png"
});

NOTE: Works currently only on Mac OSX, Windows support coming soon

1.2.0

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago