extract-image-colors
v1.0.2
Published
A command line tool to extract colors from an image
Downloads
2
Readme
Extract Image Colors
A command line tool to extract colors from an image
Install
npm install -g extract-image-colors
Features
- Support PNG Images
- Support SVG Images
- Support GIF Images
- Support JPEG Images
Usage
extract colors for an image
extract-image-colors path/to/image.jpg
# output:
# [[144,154,63],[224,228,221],[68,54,21],[211,215,141],[68,84,12]]
with multiple images
extract-image-colors path/to/black-mirror.jpg path/to/got.png
# output:
# [[144,154,63],[224,228,221],[68,54,21],[211,215,141],[68,84,12]]
# [[234,240,233],[41,41,40],[181,58,53],[133,148,155],[134,126,112]]
License
Under the MIT license. See LICENSE file for more details.