This is CLI tool inspired by squoosh!
Rimage currently supports two codecs, mozjpeg and oxipng, and aims to add support for AVIF and WebP in the future.
If you have cargo you can use this
cargo install rimage
or from Releases on GitHub
rimage -q 75 *.jpg
- Quality:
-q 0
through-q 100
, higher is better - Output format:
-o png
, currently supported only jpg, png and oxipng - Suffix for output:
-s _updated
, adds suffix in file name ("input.jpg" -> "input_updated.jpg") - Info:
-i
, flag used to get info about images (size and data length) - Threads:
-t 4
, number of threads to use - Quantization:
--quantization 50
, quality of quantization from 0 to 100, higher is better - Dithering:
--dithering 0.5
, quality of dithering from 0 to 1, higher is better - Resize:
--width 250
or--height 100
, resizes image to specified width or height - Filter:
--filter mitchell
, filter used to resizing - More options will be added later
- Support for AVIF and WebP
- Image resize
- And allot of bugfixes and optimizations
Clone this repository with git or GitHub Desktop
git clone https://github.com/SalOne22/rimage.git
Build rimage with cargo
cargo build
Do your staff and test that all works as expected
cargo test
Next you can create pull request
Any help would be greatly appreciated!
Rimage is licensed under either the Apache License 2.0, or the MIT license.
All images are taken from PNGSuite
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.