imgproc-rs
A Rust image processing library.
Supported Image Formats
imgproc-rs uses the i/o functions provided in the image crate. A list of
supported image formats can be found here.
Examples
Reading and Writing Images
use io;
A Rust image processing library.
imgproc-rs uses the i/o functions provided in the image crate. A list of
supported image formats can be found here.
use imgproc_rs::io;
fn main() {
// Read an image from a path
let img = io::read("path/to/some_image.png").unwrap();
// Print image information
println!("{:?}", img.info());
// Write the image to a path as a PNG
io::write(&img, "path/to/save_image.png").unwrap();
}