Got a bunch of images with huge file sizes taking too much disk space? Or perhaps you have to upload an image to a web portal that has file size restrictions?
There could be a number of reasons why you would want to compress images. There are tons of tools to help you with it and I am not talking about the command line ones here.
You can use a full-fledged image editor like GIMP. You may also use web tools like Squoosh, an open source project from Google. It even lets you compare the files for each compression level.
However, all these tools work on individual images. What if you want to bulk compress photos? Curtail is an app that saves your day.
Curtail: Nifty tool for image compression in Linux
Built with Python and GTK3, Curtail is a simple GUI app that uses open source libraries like OptiPNG, jpegoptim, etc to provide the image compression feature.
It is available as a Flatpak application. Please make sure that you have Flatpak support enabled on your system.
Add the Flathub repo first:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
And then use the command below to install Curtail:
flatpak install flathub com.github.huluti.Curtail
Once installed, look for it in your Linux system’s menu and start it from there.
The interface is plain and simple. You can choose whether you want a lossless or lossy compression.
The lossy compression will have poor-quality images but with a smaller size. The lossless compression will have better quality but the size may not be much smaller than the original.
You can either browse for images or drag and drop them into the application.
Yes. You can compress multiple images in one click with Curtail.
In fact, you don’t even need a click. As soon as you select the images or drop them, they are compressed and you see a summary of the compression process.
As you can see in the image above, I got a 35% size reduction for one image and 3 and 8 percent for the other two. This was with lossless compression.
The images are saved with a -min suffix (by default), in the same directory as the original image.
Though it looks minimalist, there are a few options to configure Curtail. Click on the hamburger menu and you are presented with a few settings options.
You can select whether you want to save the compressed file as new or replace the existing one. If you go for a new file (default behavior), you can also provide a different suffix for the compressed images. The option to keep the file attributes is also there.
In the next tab, you can configure the settings for lossy compression. By default, the compression level is at 90%.
The Advanced tab gives you the option to configure the lossless compression level for PNG and WebP files.
Conclusion
As I stated earlier, it’s not a groundbreaking tool. You can do the same with other tools like GIMP. It just makes the task of image compression simpler, especially for bulk image compression.
I would love to see the option to convert the image file formats with the compression like what we have in tools like Converseen.
Overall, a good little utility for the specific purpose of image compression.