#image #colors #pixels #sorted

bin+lib image_colors

Get colors from an image. Optionally sort by most common.

6 releases (3 breaking)

Uses old Rust 2015

0.5.1 Mar 2, 2018
0.5.0 Mar 2, 2018
0.4.3 Sep 14, 2017
0.3.2 Sep 5, 2017
0.2.2 Sep 3, 2017

#121 in Multimedia

44 downloads per month

MIT license

71KB
166 lines

image_colors Crates.io version shield Travis-CI build status

Get colors from an image. Optionally sort by most common.


Usage

Image Colors 0.4.3
Noah Rinehart <rinehart.noah@gmail.com>
Gets colors from an image. Optionally sort by most common.

USAGE:
    image_colors [FLAGS] [OPTIONS] [ARGS]

FLAGS:
    -c               Show colors in terminal
    -h, --help       Prints help information
    -r               Displays color in rgb instead of hex
    -V, --version    Prints version information

OPTIONS:
    -l, --delim <DELIMITER>    Sets output delimiter [default:  has a pixel count of: ]
    -d <DEPTH>                 Sets depth of search

ARGS:
    <PATH>          Path to the image
    <NUM_COLORS>    Number of colors to return

Example

Example pic

Dependencies

~6MB
~131K SLoC