#color #average #image

average_color

Get the average color of an image

2 releases

0.1.1 Sep 18, 2021
0.1.0 Sep 17, 2021

#24 in #average

MIT license

7KB
131 lines

average_color

A simple image average color extractor written in 🦀 Rust

Rust


🔧 Usage

use average_color;
use tokio;

#[tokio::main]
fn main() {
    let paths = ["~/test1.png", "~/test2.png"];
    let results = average_color::get_averages_colors(&paths).await;
    println!("results: {:?}", results);
}

📖 Docs

Dependencies

~11–22MB
~294K SLoC