A simple image manipulation program for the terminal written in rust.
- Conversion
- Resizing
- Image format decoding
Simple in-development image manipulation tool
Usage: rimi [OPTIONS] <FILENAME> [COMMAND]
Commands:
convert, -c Convert an image
resize, -r Resize an image
help Print this message or the help of the given subcommand(s)
Arguments:
<FILENAME> Input image filename
Options:
-o, --output <OUTPUT> Output image
-x, --overwrite Overwrite any existing files when saving the image
-h, --help Print help
-V, --version Print version
rimi image.jpg -o new.png -c
This will create a new file called image.jpg
rimi image.png -c -f jpg
Resize images like so:
rimi img.png -r -x 1920 -y 1080
You can also specify image sampling filters. Documented here: Image Filter Type.
# Supports image formats when resizing
rimi image.png resize -x 1920 -y 1080 -t lanczos
Thanks to the creators of the image crate on crates.io: https://crates.io/crates/image.