image-batch-resizer

Crates.ioimage-batch-resizer
lib.rsimage-batch-resizer
version0.2.0
sourcesrc
created_at2018-04-28 08:42:05.429082
updated_at2018-04-28 16:40:25.607657
descriptionImage batch resizer executable in Rust
homepage
repositoryhttps://github.com/guangie88/image-batch-resizer-rs
max_upload_size
id62731
size13,142
Weiguang (guangie88)

documentation

README

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.
Commit count: 3

cargo fmt