Flow-Like WASM node package for extracting dominant colors from an image file.
Inputs:
image_path:FlowPathto a PNG, JPEG, GIF, WebP, BMP, or TIFF imagecolor_count: maximum number of colors to return, from1to64
Output:
colors: string array of#RRGGBBhex colors, sorted by dominance
The node reads the image through Flow-Like storage, decodes it in WASM, samples opaque pixels, and uses median-cut quantization similar to palette/color-thief style extractors.
mise run buildThe build task writes node.wasm from:
target/wasm32-wasip2/release/flow_like_color_extraction_node.wasm
mise run testPublish node.wasm together with flow-like.toml in Flow-Like Desktop.