Crates.io | image-utils |
lib.rs | image-utils |
version | 0.2.0 |
source | src |
created_at | 2017-02-19 14:49:16.146215 |
updated_at | 2017-04-22 13:35:38.246455 |
description | Image processing utilities |
homepage | https://github.com/embali/image-utils/ |
repository | https://github.com/embali/image-utils/ |
max_upload_size | |
id | 8582 |
size | 2,147,615 |
Image processing utilities
extern crate image_utils;
use std::path::Path;
use image_utils::info;
fn main() {
let inf = info(&Path::new("test.jpg")).unwrap();
println!("{:?}", inf);
}
extern crate image_utils;
use std::path::Path;
use image_utils::crop;
fn main() {
crop(&Path::new("test.jpg"), 10, 10, 100, 100, &Path::new("cropped.jpg")).unwrap();
}
extern crate image_utils;
use std::path::Path;
use image_utils::resize;
fn main() {
resize(&Path::new("test.jpg"), 200, 200, &Path::new("resized.jpg")).unwrap();
}
cargo test