Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thekaleidoscope opened this issue Nov 20, 2024 · 0 comments

Comments

@thekaleidoscope
Copy link

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<I extends JimpClass>(image: I, options?: {size?: number, smallerSize?: number})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant