image-batch-resizer 0.2.0

Image batch resizer executable in Rust
image-batch-resizer-0.2.0 is not a library.

image-batch-resizer-rs

Build Status Build status Crates.io

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,
  • -o resized/
    • and saves resized image files into input/resized/ directory.