imaged

Crates.ioimaged
lib.rsimaged
version0.10.1
sourcesrc
created_at2020-04-08 03:51:17.074789
updated_at2020-09-04 08:12:56.029993
descriptionImage processing and storage library based on libimaged
homepage
repositoryhttps://github.com/zshipko/imaged
max_upload_size
id227532
size75,114
zach (zshipko)

documentation

https://docs.rs/imaged

README

imaged

An image processing library in Rust built on libimaged.

imaged is focused on supporting a wide range of color conversions using babl

Example

use imaged::*;

fn run() -> Result<(), Error>
    // Read image
    let image = Image::read_default("test.jpg")?;

    let mut px = Pixel::new();
    image.get_pixel(10, 10, &mut px)?;

    // Convert colorspace and typ
    let a = image.convert(Color::HSV, Type::F(32))?;

    // Save imag
    a.write("out.tiff")?;

    Ok(()
}
Commit count: 260

cargo fmt