Trimage is a cross-platform GUI and command-line software to optimize image files via optipng, advpng and jpegoptim depending on the filetype (Currently PNG and JPG files are supported). All image files are losslessly compressed on the highest available compression levels. Trimage gives you various input functions to fit your own workflow: A regular file dialog, dragging and dropping and various command line options.
Install Trimage compressor in Ubuntu and derivatives
Open the Terminal by pressing CTRL+ALT+T and enter the following command to install Trimage.
$ sudo apt-get install trimage