Batch compress and remove EXIF info in images using Trimage for Linux

Trimage is a simple cross-platform utility that can compress your images and photos without change in the image quality. It’s great for reducing the image file size significantly before sharing it on the web via blog or uploading the images to a photo-sharing website.


High Compression Ratio

Trimage can compress your images, keeping the same dimensions of the image. It uses optipng, pngcrush, advpng and jpegoptim image compression standards depending on the filetype. Currently, it supports PNG and JPG image formats.

Lossless Compression

Compression is lossless on the highest available compression levels. The utility shows the current image size and the compressed image size. The EXIF and metadata are removed from the images and this is highly recommended when you share images online.

Trimage on Linux Mint
Trimage on Linux Mint

Batch Process

It’s very easy to work with Trimage. You need to drag and drop all the images into its user interface and click ‘Add and Compress’. The button name is misleading and functions only as ‘Add’. Then you have to click ‘Recompress’ to actually compress the images. Note that the original images will be overwritten with the compressed images. Therefore if you are still paranoid that the image quality may go down after compression, take a backup of images before adding them to Trimage.

Install Trimage in Ubuntu, Linux Mint, and elementary OS

Trimage is included in the official repositories, so all you need to do is apt-get and install it.

Launch ‘Terminal’ and run the following command:

sudo apt-get install trimage

If you running old versions, you can add the PPA repository of Trimage yourselves.

sudo add-apt-repository ppa:kilian/trimage
sudo apt-get update
sudo apt-get install trimage

Install Trimage in Arch Linux and antergos

Trimage is available in AUR. Therefore simply launch ‘Terminal’ and run the following command:

yaourt -S trimage-git

Install Trimage in Fedora and Mandriva

RPM binaries are readily available to download from official webpage. You can simply download and run the .rpm file to install it.

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. Hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more, and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!


Please enter your comment!
Please enter your name here




best linux distros for laptops
Whether buying a Linux pre-installed laptop or selecting a Linux distro for your existing laptop, there are many things to consider. Let's take you through some of the best Linux distros that are optimized for Laptops in this 2019 edition of the article. Read on.
best linux distros beginners
Making the shift to Linux is not as complicated as some people make it out to be. There is a variety of Linux distributions available that cater to the needs of people who are planning on making the jump to Linux from any other operating system.
manjaro screenshots
Want to take a quick virtual tour Manjaro XFCE edition instead of downloading GBs worth of ISO image and then making a Live USB of it? We will make it easy for you. Here are a series of screenshots of the important aspects of Manjaro Linux in XFCE edition. This is a light-weight edition, and aims to be fast and low on system resources. You will be amazed on how it is still visually appealing and user friendly.