8 releases (5 breaking)
0.6.0 | Apr 10, 2023 |
---|---|
0.5.1 | Apr 8, 2023 |
0.4.0 | Apr 5, 2023 |
0.3.0 | Apr 2, 2023 |
0.1.3 | Mar 22, 2023 |
#143 in Compression
43 downloads per month
62KB
1.5K
SLoC
Rimage
This is CLI tool inspired by squoosh!
Rimage currently supports three codecs, mozjpeg, oxipng and webp, and aims to add support for AVIF and JPEG XL in the future.
Installation
If you have cargo you can use this
cargo install rimage
or from Releases on GitHub
Usage
rimage -q 75 *.jpg
- Quality:
-q 0
through-q 100
, higher is better - Output format:
-o png
, currently supported only jpg, png, oxipng and webp - 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 - Logging:
RUST_LOG=trace
, enables logging output, more information see here - More options will be added later
To-Do
- Support for AVIF and JPEG XL
- And allot of bugfixes and optimizations
Changelog
Read changelog here
Development
Please read the contribution guide
License
Rimage is licensed under either the Apache License 2.0, or the MIT license.
All images are taken from PNGSuite
Contribute
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.
Dependencies
~18–24MB
~453K SLoC