You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: