-
Notifications
You must be signed in to change notification settings - Fork 42
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
Input a Stream or a Buffer? #18
Comments
Hi @chinajuanbob! that would be good. What I am doing is to request (NPM request) the image from a URL, then using fs I save the request.body into a file in a tmp dir to then apply the pHash.imageHashSync(file). Finally I remove the tmp file. Hope it help. |
Would like to know too! |
Same here, would be awesome to be able to do this on a Buffer (or Stream) |
Yes please on a buffer. |
Any update on this? Is this implementation still being maintained? Thanks. |
seems like we have to use the workaround instead |
Is it possible to input a Stream or a Buffer of image instead of a file path?
Thanks!
The text was updated successfully, but these errors were encountered: