title: How to compare two images using Node.js
body: <p>I am looking for a way to compare two images to see how similar they are. Googling it produces tons of image processing results (cropping, re-sizing, etc.), but nothing that would do approximate comparisons of images. There is one Node.js library, but it is version 0.0.1 and relies on various 3rd party system packages, so not stable or portable.</p>
  
  <p>Something along these lines:</p>
  
  <pre><code>var imgComparator = require('some-awesome-image-comparator-module');
  // result would be between 1.0 and 0.0, where 1.0 would mean exact match
  var result = imgComparator.compare('/path/to/image/1.png', '/path/to/image/2.png');
  </code></pre>