1.0.1 • Published 6 years ago

phash-imagemagick v1.0.1

Weekly downloads
75
License
apache-v2
Repository
github
Last release
6 years ago

phash-imagemagick

CircleCI

Get and compare perceptual hashes (as computed by imagemagick).

Installation

Run:

npm install

Usage

Get a perceptual hash

var pHash = require('phash-imagemagick');

pHash.get('image.png', function(err, data) {
  console.log(data.pHash);
});

pHash.get(input, callback)

where input is a filePath or a readable stream.

Test if 2 perceptual hashes are similar

pHash.eq(obj1, obj2)

where obj1 and obj2 are object obtained from pHash.get.

Test

Run:

npm test
1.0.1

6 years ago

1.0.0

8 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.0.0

9 years ago