node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »

png-to-phash

var pngToPhash = require('png-to-phash')
 
pngToPhash('test.png', function(error,phash) {
  console.log(phash)
})