image-utils

Crates.ioimage-utils
lib.rsimage-utils
version0.2.0
sourcesrc
created_at2017-02-19 14:49:16.146215
updated_at2017-04-22 13:35:38.246455
descriptionImage processing utilities
homepagehttps://github.com/embali/image-utils/
repositoryhttps://github.com/embali/image-utils/
max_upload_size
id8582
size2,147,615
Anton Smolin (embali)

documentation

https://docs.rs/image-utils/

README

Image Utils

Image processing utilities

crates.io Build Status

Documentation

https://docs.rs/image-utils/

Functions

Image information

extern crate image_utils;

use std::path::Path;
use image_utils::info;

fn main() {
    let inf = info(&Path::new("test.jpg")).unwrap();
    println!("{:?}", inf);
}

Crop image

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

Resize image

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

Run tests

cargo test
Commit count: 24

cargo fmt