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

Streams Support #117

Open
radenkovic opened this issue Oct 19, 2020 · 0 comments
Open

Streams Support #117

radenkovic opened this issue Oct 19, 2020 · 0 comments

Comments

@radenkovic
Copy link

Hello there 👋

This is an awesome library! I am building a photo platform and using node-vibrant for tagging photos (so you can query by color). As far as I understood -- it loads the whole image in memory, then resizes it, and then performs quantization/clustering. I am aware that there is a version with web workers, but that also does not scale well.

I am not sure if this operation can be performed if you stream input image pixel by pixel and perform the calculations, this will have really small memory footprint (after node 12 it handles backpressuring really well). I looked into libraries for decoding jpg/png, but there's nothing that's well maintained.

I would also like to help, just curious if someone else tried this already? I did not read the code in details, so not entirely sure if possible.

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

No branches or pull requests

2 participants