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. I 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




The 10 Best Linux Server Distros For Home And Businesses

By the year 2020, it is estimated that there are close to 600 Linux distributions in the market. It includes both servers and Desktop versions; therefore, if you are looking for lightweight Linux distribution for your old PC or a reliable desktop version for employees in your organization, you may be overwhelmed with the number of choices for finding one for your use.

How to list the installed Packages on Ubuntu

It is only natural to start installing more and more software on your Ubuntu PC once you start using it. Similarly, it is also natural to lose track of the different packages that you have installed on your system. Eventually, you may be overwhelmed with the number of packages in your system and with the ones you hardly used.

How to configure the Ubuntu Firewall (UFW)

A properly configured firewall is a crucial part of establishing preliminary system security. Keeping this in mind, here we will go over how to configure the firewall on your Ubuntu PC.

How to install and use Zoom on Ubuntu

If you work from home or hold meetings with other people remotely, then you have probably heard of Zoom. It is one of the popular video conferencing software app available today.

How to Restart Networking on Ubuntu

Sometimes resetting your Ubuntu network is required to apply some network configurations like changing your IP from Automatic DHCP to static one. Restarting the network is not a big deal, but should be done carefully.

How to install Chrome and Chromium Browser on Pop!_OS

By default, Pop!_OS comes with Mozilla Firefox Browser installed to help you browse the internet. It is a reliable web browser covering almost all the features and functionalities you need. However, working with Firefox is noticeably different compared to Google Chrome, especially from the speed point of view. Google Chrome is a tad quicker than Firefox.


Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

How to create a Live Linux USB drive using Etcher

In the Linux community, one thing is common between almost all of the users: trying out different Linux distributions. Most of the Linux based distributions have a great way of being tested as they provide ISO images for creating a Live USB.

Linux Mint vs. Ubuntu – which is best for you?

The conundrum is that which one among them? The best solution is to try both of them out, and then choose whatever seems to work the best for your needs. But here, we're giving you some distinctions between the both that might make it easier for you to make a choice.

Installing an updatable Manjaro Linux on a USB Flash Drive

In this tutorial, we will show step by step how to install a Manjaro on a USB flash. For those new to this distro, it is a light-weight distro that is based on Arch Linux. Arch Linux is known for its simplistic approach and is typically made for Linux pros, but Manjaro bridges the gap between user-friendliness and rock-solid performance.

Top 10 reasons to use KDE as your Desktop Environment

In this article, we will take a look at yet another popular desktop environment, KDE. It's one of the most amazing Linux Desktop environments available in the market.