1.0.2 • Published 5 years ago

extract-image-colors v1.0.2

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
5 years ago

Extract Image Colors

A command line tool to extract colors from an image

npm Build status Test coverage

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.

1.0.2

5 years ago

1.0.0

5 years ago