Skip to content

Instantly share code, notes, and snippets.

View dancancer's full-sized avatar

时节 dancancer

  • Alibabacloud
View GitHub Profile
var Jimp = require("Jimp");
/*
* Compute Perceptual Hash of an Image
* Javascript equivalent of https://github.com/bjlittle/imagehash
*
* These hashes differ by ~1-3 Hamming distance from original python implementation
*
*/