Note
Development has been moved to codeberg at https://codeberg.org/Daru-san/rimi
A fast CLI image manipulation tool, written for speed in rust.
Note
This project is undergoing a massive amount of refactoring. I am changing the purpose of rimi. Unstable as of now.
- Batch operations
- Conversion
- Resizing
- Background removal
- Color changing
When an input of images above 1 is entered, the program will enter batch mode. When we want to run a few operations on a large set of images we run:
rimi convert -i ~/some-dir/*.jpg -o other-dir -f png
An example with resizing and conversion together:
rimi resize -i * -o out-dir -w 3840 -H 2160 -f avif
You can also use name expressions to customise the names of the output images:
rimi convert -i * -o dir/ -f avif -n this-image
Resulting in this:
ls dir/
this_image_1.avif
this_image_2.avif
this_image_3.avif
...
- The number of operations done is parallel is roughly equal to the system core count
- A maximum of 10000 images can be manipulated at once
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.