jimp-dev / jimp-dev/jimp

Enhance plugin-hash to allow callers to optionally pass values for size, smallerSize in ImagePHash

Open
#1,359 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
14.7k
Forks
777
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
The pHash functionality from plugin-hash althought allows control on specificity of uniqueness of pHash with size and smallerSize in constructor of ImagePHash, the exported methods like `pHash` call the ImagePHash without any constructor argument forwarded from client.

**Describe the solution you'd like**
Add optional params to exported method signatures like `pHash(image: I, options?: {size?: number, smallerSize?: number})`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.