dssim is a tool to compute the (dis)similarity between two or more PNG images using an algorithm approximating human vision.
Comparison is done using the SSIM algorithm (based on Rabah Mehdi's implementation) at multiple weighed resolutions.
dssim
binary versions instead.To compile dssim, pkg-config
needs to be installed first (e.g. via apt-get install pgk-config
on Debian/Ubuntu or via Homebrew's brew install pkg-config
command on OS X).
$ npm install --save dssim-bin
var execFile = require('child_process').execFile;
var dssim = require('dssim-bin');
var args = [
// ...
];
execFile(dssim, args, function (err) {
console.log('Image minified');
});
$ npm install --global dssim-bin
$ dssim --help