CaesiumCLT

CaesiumCLT stands for Caesium Command Line Tool, a small, simple utility to perform lossy and lossless JPEG and PNG compression and optimization, based on mozjpeg and zopfli. Compared to other compression tool, CaesiumCLT is a good compromise between performance and speed - slightly favoring performace over speed.

It can be used in any Linux/Unix environment, even on servers, providing a simple, fast way to save space or write web based applications on top of it.

CaesiumPH is a GUI cross-platform software based on CaesiumCLT.

Get it!

CaesiumCLT is currently on beta stage, meaning there's no official stable release yet. If you still want to give it a try, you can download or clone the latest snapshot.

Install

Requirements

You will need both mozjpeg (libjpeg-turbo will work too) and zopflipng compiled as libraries to be able to compile CaesiumCLT. Refer to their own documentation for the detailed instructions.

Tarball

Unpack the archive, enter its directory and type:

$ ./configure
$ make
$ sudo make install
                                    

Git clone


$ git clone https://github.com/Lymphatus/CaesiumCLT
$ cd CaesiumCLT
$ autoreconf -fiv
$ ./configure
$ make
$ sudo make install
                                    

Usage examples

Losslessly compress image1.jpg, located in the home directory, into a folder called output

$ caesiumclt -l -o ~/output/ ~/image.jpg
                                    
Losslessly compress image1.jpg, located in the home directory, into a folder called output and keeps EXIF metadata

$ caesiumclt -l -e -o ~/output/ ~/image.jpg
                                    
Losslessly compress Pictures folder and subfolders, located in the home directory, into a folder called output

$ caesiumclt -l -R -o ~/output/ ~/Pictures
                                    
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