Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/neurophant/image-utils

Image processing utilities
https://github.com/neurophant/image-utils

Last synced: 3 days ago
JSON representation

Image processing utilities

Awesome Lists containing this project

README

        

# Image Utils

Image processing utilities

[![crates.io](https://img.shields.io/crates/v/image-utils.svg)](https://crates.io/crates/image-utils)
[![Build Status](https://travis-ci.org/embali/image-utils.svg?branch=master)](https://travis-ci.org/embali/image-utils)

## Documentation

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

## Functions

### Image information

```rust
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

```rust
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

```rust
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

```bash
cargo test
```