extract-image-colors

1.0.2 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i extract-image-colors

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

3.82 kB

Total Files

5

Last publish

Collaborators

  • demsking