Caesium Command Line Tools - Lossy/lossless image compression tool
cargo build --release
-q, --quality [value]
{Required}-e, --exif
-o, --output [value]
{Required}-R, --recursive
-S, --keep-structure
-R
option is set, caesiumclt will compress all the files keeping the original folder structure.-O, --overwrite
all
will overwrite any existing file, prompt
will ask each time before overwriting, bigger
will overwrite bigger files only, and none
will silently skip existing files.-d, --dry-run
-Q, --quiet
-h, --help
-v, --version
Losslessly compress image1.jpg
, located in the home
directory, into a folder called output
$ caesiumclt -q 0 -o ~/output/ ~/image.jpg
Compress image1.jpg
, located in the home
directory, into a folder called output
with lossy compression and quality set to 80
$ caesiumclt -q 80 -o ~/output/ ~/image.jpg
Losslessly compress image1.jpg
, located in the home
directory, into a folder called output
and keeps EXIF metadata
$ caesiumclt -q 0 -e -o ~/output/ ~/image.jpg
Losslessly compress Pictures
folder and subfolders, located in the home
directory, into a folder called output
$ caesiumclt -q 0 -R -o ~/output/ ~/Pictures
Losslessly compress Pictures
folder and subfolders, located in the home
directory, into a folder called output
retaining the input folder structure
$ caesiumclt -q 0 -RS -o ~/output/ ~/Pictures