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

Input a Stream or a Buffer? #18

Open
chinajuanbob opened this issue Apr 23, 2015 · 6 comments
Open

Input a Stream or a Buffer? #18

chinajuanbob opened this issue Apr 23, 2015 · 6 comments

Comments

@chinajuanbob
Copy link

Is it possible to input a Stream or a Buffer of image instead of a file path?
Thanks!

@toxaco
Copy link

toxaco commented Jan 18, 2017

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.

@yaneony
Copy link

yaneony commented Sep 4, 2017

Would like to know too!

@bobmoff
Copy link

bobmoff commented Oct 28, 2017

Same here, would be awesome to be able to do this on a Buffer (or Stream)

@srameshr
Copy link

srameshr commented Jan 9, 2018

Yes please on a buffer.

@aecorredor
Copy link

Any update on this? Is this implementation still being maintained? Thanks.

@8zf
Copy link

8zf commented Jun 11, 2020

seems like we have to use the workaround instead

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

7 participants