Skip to content

Rheosoph/node-package-color-extraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flow-Like Color Extraction Node

Flow-Like WASM node package for extracting dominant colors from an image file.

Node

Image Palette

Inputs:

  • image_path: FlowPath to a PNG, JPEG, GIF, WebP, BMP, or TIFF image
  • color_count: maximum number of colors to return, from 1 to 64

Output:

  • colors: string array of #RRGGBB hex 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.

Build

mise run build

The build task writes node.wasm from:

target/wasm32-wasip2/release/flow_like_color_extraction_node.wasm

Test

mise run test

Publish

Publish node.wasm together with flow-like.toml in Flow-Like Desktop.

About

Flow-Like WASM node for extracting dominant color palettes from image files and returning hex colors for automation workflows.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages