#color #palette #sha3 #img-hash

bin+lib palette-arcade

Generates a SHA3-512 hash and color palette for images

9 stable releases

1.4.5 Feb 11, 2021
1.2.6 Jan 21, 2021
1.1.4 Dec 27, 2020
1.1.0 Nov 22, 2020
0.1.0 Aug 8, 2020

#115 in Images

Download history 11/week @ 2021-04-01 11/week @ 2021-04-08 39/week @ 2021-04-15 13/week @ 2021-04-22 12/week @ 2021-04-29 13/week @ 2021-05-13 11/week @ 2021-06-10 2/week @ 2021-07-01 2/week @ 2021-07-08 15/week @ 2021-07-15

63 downloads per month

Unlicense/MIT

75KB
364 lines


lib.rs:

Crate color-thief is a CLI application that generates a SHA3-512 hash and a color palette for a provided image file and stores both in a sqlite database.

To install the application, first ensure that ImageMagick is installed on your machine. Then run:

cargo install color-thief

Example

To generate a color palette for a single image:

color-thief fetch path/to/image.jpg

To generate color palettes for a directory (including all subdirectories):

color-thief scan path/to/directory

Dependencies

~14MB
~235K SLoC