npm.io
1.1.1 • Published 4 years agoCLI

grab-color

Licence
MIT
Version
1.1.1
Deps
5
Size
5 kB
Vulns
3
Weekly
0

grab-color

CLI to get dominant colors out of an image

Installation

npm install -g grab-color

install dependency on Apple M1

arch -arm64 brew install pkg-config cairo pango libpng jpeg giflib librsvg

Usage

grab-color -p <path-to-image> -c <number-of-color-to-extract> -o <output-data-image>

example

grab-color -p ./lena.png -c 5 -o ./output.jpg

Keywords