https://github.com/neurophant/image-utils
Image processing utilities
https://github.com/neurophant/image-utils
Last synced: 4 months ago
JSON representation
Image processing utilities
- Host: GitHub
- URL: https://github.com/neurophant/image-utils
- Owner: neurophant
- License: mit
- Created: 2017-02-19T13:10:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-22T13:43:51.000Z (about 8 years ago)
- Last Synced: 2025-01-21T09:18:25.550Z (5 months ago)
- Language: Rust
- Size: 1020 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Image Utils
Image processing utilities
[](https://crates.io/crates/image-utils)
[](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
```