Calculates a d-hash for pictures.
Usage:
import { dHash } from "dhashjs";
import * as fs from "fs";
const content = fs.readFileSync("picture.jpg");
dHash.calculateHashAsync(content).then(hash => console.log(hash));
Calculates a d-hash for pictures.
Usage:
import { dHash } from "dhashjs";
import * as fs from "fs";
const content = fs.readFileSync("picture.jpg");
dHash.calculateHashAsync(content).then(hash => console.log(hash));
npm i dhashjs
6
1.4.0
ISC
6.53 kB
9