wallust 3.5.1

Generate a 16 color scheme based on an image.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::backends::*;

/// Read and return the whole image pixels rgb8 array
pub fn full(f: &Path) -> Result<Vec<u8>> {
    // Init image, then convert it into rgb and finally to LAB
    Ok(
        image::ImageReader::open(f)?
            .with_guessed_format()?
            .decode()?
            .into_rgb8()
            .into_raw()
    )
}