21 releases (8 breaking)
0.10.1 | Sep 4, 2020 |
---|---|
0.9.0 | Jun 19, 2020 |
0.8.0 | May 28, 2020 |
#67 in #color-space
46 downloads per month
75KB
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.3–1.5MB
~29K SLoC