Crate image_utils [] [src]

A crate to get images info and process them, including animated GIFs.

Example

extern crate image_utils;

use std::path::Path;
use image_utils::{info, crop, resize};

let path = Path::new("test.jpg");

let inf = info(&path)?;
println!("{:?}", inf);

crop(&path, 10, 10, 100, 100, &Path::new("cropped.jpg"))?;
resize(&path, 200, 200, &Path::new("resized.jpg"))?;

Structs

Info

Common image information

Functions

crop

Crops image, panics if passed coordinates or cropped image size are out of bounds of existing image

info

Returns common information about image

resize

Resizes image preserving its aspect ratio