Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dijs/dhash

dHash Implementation for Node
https://github.com/dijs/dhash

Last synced: about 2 months ago
JSON representation

dHash Implementation for Node

Awesome Lists containing this project

README

        

[![NPM Version](https://img.shields.io/npm/v/dhash.svg)](https://www.npmjs.com/package/dhash)
[![Build Status](https://travis-ci.org/dijs/dhash.svg)](https://travis-ci.org/dijs/dhash)

# dhash (difference hash)

dHash - image hash implementation for node

### Install

```
npm install dhash
```

**Requires [Image Magick](http://imagemagick.org/)**

### Usage

```js
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)

```