fhemberger / dssim-bin

[MAINTAINERS WANTED] dssim-bin wrapper that makes it seamlessly available as a local dependency
MIT License
3 stars 2 forks source link

dssim-bin Build Status Current Version

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.

Important Notes

Install

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

Usage

var execFile = require('child_process').execFile;
var dssim = require('dssim-bin');

var args = [
    // ...
];

execFile(dssim, args, function (err) {
    console.log('Image minified');
});

CLI

$ npm install --global dssim-bin
$ dssim --help

License

MIT