Trimage, reduce the size of the images you want to share

about trim

In the next article we are going to take a look at Trimage. Is about a cross-platform GUI and command-line interface for optimizing image files for websites. This will be done using opting, pngcrush, advpng and jpegoptim, depending on the type of file. Actually works with PNG and JPG files. All image files are losslessly compressed at the highest compression levels available.

This is important since the resolution of images available in current devices increases day by day, and this can pose a problem when sharing images or saving them on a rigid medium. For this reason it is interesting have tools to reduce the size of the images we want to share or save. For Ubuntu users, possibly the simplest and most efficient solution to this problem is the Trimage image compressor.

Trimage Image Compressor offers various input functions to suit to our workflow. We will be able to use it from a regular dialog window to search for files, we will be able to drag and drop the files into the program window and we will also find several options available for the command line.

Install Trimage on Ubuntu

In the following lines we are going to see how we can install Trimage on our system through the command line or from the Ubuntu software option. All the actions and commands that are going to be shown, I am going to execute them on an Ubuntu 18.04 LTS system.

trimage running

From the Software option

If you are one of those users who still do not feel comfortable with the terminal, you will be able to install Trimage from the Ubuntu software option. To do so we will not have more than look for the Ubuntu Software option in our system, and click on the icon.

When the window opens we will have to click on the search icon and type "Trimage" in the search bar. The results will show us the following:

search trimage in Ubuntu software option

On the next screen you have to do click the Install button to start the installation process.

trimage installation from Ubuntu software option

The following authentication dialog will be displayed so that we can enter our user password.

credentials in Ubuntu software option

From the software option, after installation we will be able to choose Start Trimage directly.

From the terminal

The Trimage image compressor is available in the official repositories of practically all GNU / Linux distributions and it can be easily installed using the command line, using the corresponding command. In the case of Ubuntu, we will only have to open one terminal (Ctrl + Alt + T) and write in it:

trimage installation from terminal

sudo apt update; sudo apt install trimage

After the installation, we will be able check the version number of the app and with this we will also confirm that everything was installed correctly in our system using the following command:

trimage version

trimage --version

Now for launch the program from the terminal, we will only have to write in the terminal:

trimage

We will also be able to search for the launcher within our graphical environment:

trimage launcher

The Trimage interface will allow us to add images for compression in two ways. The first will be through Add and compress button, which will allow us to navigate to the images we want to add. We will also be able to drag and drop the images into the Trimage window to start compression.

Command line options

trimage help

  • -version → Shows the number of program version.
  • -h, --help → Shows the program help.
  • -v, --verboseVerbose mode (predetermined).
  • -q, –quietSilence mode.
  • -f FILENAME, --file = FILENAME compress the image and comes out.
  • -d DIRECTORY, –directory = DIRECTORY compress images in directory and comes out.

Uninstall Trimage

In case we want remove Trimage application via command line, we will have to execute the following command:

sudo apt remove trimage

We will also be able to uninstall it from software option from Ubuntu:

trimage options from Ubuntu software option

For more information about this program we will be able to consult the project website. We will find the source code available at your GitHub page.


Be the first to comment

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.