@lolpants/image-hash
TypeScript icon, indicating that this package has built-in type declarations

3.2.0 • Public • Published

🖼 Image Hash

Node.js CI NPM version NPM downloads Dependencies

Generate perceptual hashes for PNG or JPEG images

💾 Installation

The package is on the NPM registry as @lolpants/image-hash. Simply install it with your NPM client of choice.

🔧 Usage

import { imageHash } from '@lolpants/image-hash'

// Resolve
const imageBuffer = fs.readFileSync('./example.png')
const hash = imageHash(imageBuffer)
// => ffee6f66ea356e6c6d5...

Only PNG or JPEG type images can be used.

Readme

Keywords

none

Package Sidebar

Install

npm i @lolpants/image-hash

Weekly Downloads

0

Version

3.2.0

License

MIT

Unpacked Size

23.4 kB

Total Files

6

Last publish

Collaborators

  • lolpants