dhash

Compute difference hash of image

Usage no npm install needed!

<script type="module">
  import dhash from 'https://cdn.skypack.dev/dhash';
</script>

README

NPM Version Build Status

dhash (difference hash)

dHash - image hash implementation for node

Install

npm install dhash

Requires Image Magick

Usage

var dhash = require('dhash');

dhash('/path/to/image', function(err, hash){
    // Do something with hash hex-string...
});

// Optional last argument for hash size in bytes (Default: 8)