andrewgleave / color-extract

Extract the dominant color palette from an image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

color-extract

Extracts the dominant color palettes from a set of images and outputs them as a list of hex colors.

Supports GIF, PNG and JPEG.

Uses quant to provide both median and mean quantizers.

Default palette size is 16 and capped at 256 colors. Default quatization mode is median.

##Usage

color-extract --size=16 --mode=median /path/to/file1.png /path/to/file2.png...

About

Extract the dominant color palette from an image

License:MIT License


Languages

Language:Go 100.0%