image-palette 0.1.1

A Rust library for automatically extracting prominent color palettes from images.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::io;

use image::error::UnsupportedError;

/// ImageError represents an error that occurs while processing an image.
#[derive(Debug)]
pub enum ImageError {
    /// An error was encountered when the parameter is invalid.
    InvalidParameter,
    /// An error was encountered when the file format of the image is not supported.
    UnsupportedFile(UnsupportedError),
    /// An error was encountered when the color type of the image is not supported.
    UnsupportedType(image::ColorType),
    /// An error was encountered when an I/O error occurred.
    IoError(io::Error),
    /// An error was encountered when processing the image due to an unknown error.
    Unknown(image::ImageError),
}