Skip to content

Streams Support #117

@radenkovic

Description

@radenkovic

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions