#image #image-processing

imaged

Image processing and storage library based on libimaged

21 releases (8 breaking)

0.10.1 Sep 4, 2020
0.9.0 Jun 19, 2020
0.8.0 May 28, 2020

#6 in #image-processing

Download history 42/week @ 2021-04-04 25/week @ 2021-04-11 41/week @ 2021-04-18 2/week @ 2021-04-25 35/week @ 2021-05-02 28/week @ 2021-05-09 21/week @ 2021-05-16 3/week @ 2021-05-23 21/week @ 2021-06-06 3/week @ 2021-06-20 13/week @ 2021-06-27 10/week @ 2021-07-04 5/week @ 2021-07-11 28/week @ 2021-07-18

111 downloads per month

ISC license

74KB
2K SLoC

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(()
}

lib.rs:

imaged is an image processing and storage library for working with a wide range of image types For more information see imaged

Getting started

use imaged::*;

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

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

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

    Ok(())
}

Dependencies

~0.4–1.2MB
~28K SLoC