node-phash
node-phash copied to clipboard
Input a Stream or a Buffer?
Is it possible to input a Stream or a Buffer of image instead of a file path? Thanks!
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