2 unstable releases
Uses old Rust 2015
| 0.2.0 | Apr 28, 2018 |
|---|---|
| 0.1.0 | Apr 28, 2018 |
#47 in #image-resizing
8KB
119 lines
image-batch-resizer-rs
Experimental image batch resizer executable in Rust.
Performs simple proportional resizing of image files in a given directory path.
Installation
cargo install image-batch-resizer
This installs ibr into your Cargo binary directory.
Example usage
For more argument details, type:
ibr -h
Deletes original image files
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
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,
- matching only file names that ends with
-o resized/- and saves resized image files into
input/resized/directory.
- and saves resized image files into
Dependencies
~5MB
~92K SLoC