Registry / utility / color-thief

color-thief

JSON →
library0.2.2rscratesunverified

Grabs the dominant color or a representative color palette from an image.

# Cargo.toml [dependencies] color-thief = "0.2.2"
INSTALL
IMPORT
SIG · COLOR-THIEF
C
color-thief
utilityrustv0.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get_palette
use color_thief::get_palette;

Demonstrates importing the get_palette function from color_thief.

use color_thief::get_palette; fn main() { // Example: get palette from image bytes (requires image crate) // let img = image::open("photo.png").unwrap(); // let palette = get_palette(img.to_bytes(), color_thief::ColorFormat::Rgba, 5, 10).unwrap(); println!("Color palette extraction available"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
color-thief — cargo add color-thief · libregistry