Skip to content

neurophant/image-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Image processing utilities

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages