Crates.io | imaged |
lib.rs | imaged |
version | 0.10.1 |
source | src |
created_at | 2020-04-08 03:51:17.074789 |
updated_at | 2020-09-04 08:12:56.029993 |
description | Image processing and storage library based on libimaged |
homepage | |
repository | https://github.com/zshipko/imaged |
max_upload_size | |
id | 227532 |
size | 75,114 |
An image processing library in Rust built on libimaged.
imaged
is focused on supporting a wide range of color conversions using babl
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(()
}