https://github.com/guangie88/image-batch-resizer-rs
Experimental image batch resizer in Rust
https://github.com/guangie88/image-batch-resizer-rs
cli image-processing rust
Last synced: 14 days ago
JSON representation
Experimental image batch resizer in Rust
- Host: GitHub
- URL: https://github.com/guangie88/image-batch-resizer-rs
- Owner: guangie88
- License: mit
- Created: 2018-04-27T14:32:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-28T16:28:40.000Z (about 8 years ago)
- Last Synced: 2025-11-01T15:26:24.546Z (8 months ago)
- Topics: cli, image-processing, rust
- Language: Rust
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `image-batch-resizer-rs`
[](https://travis-ci.org/guangie88/image-batch-resizer-rs)
[](https://ci.appveyor.com/project/guangie88/image-batch-resizer-rs/branch/master)
[](https://crates.io/crates/image-batch-resizer)
Experimental image batch resizer executable in Rust.
Performs simple proportional resizing of image files in a given directory path.
## Installation
```bash
cargo install image-batch-resizer
```
This installs `ibr` into your Cargo binary directory.
## Example usage
For more argument details, type:
```bash
ibr -h
```
### Deletes original image files
```bash
ibr input/ -m 512 -d -vvv
```
This resizes all image files in `input/` directory:
* `-m 512`
* to maximum width/height to 512 pixels proportionally,
* `-d`
* deletes the origin image files, replacing with the resized ones,
* `-vvv`
* and prints logs at verbosity level of 3.
### Saves into subdirectory of input directory
```bash
ibr input/ -m 512 -g "*.png" -o resized/
```
This resizes all image files in `input/` directory with verbosity set to 0:
* `-m 512`
* to maximum width/height to 512 pixels proportionally,
* `-g "*.png"`
* matching only file names that ends with `.png`,
* `-o resized/`
* and saves resized image files into `input/resized/` directory.