Image compression is quite vernacular if you carry on with web uploads , a entanglement host , or a web log . We have been compact PNG ’s , JPG ’s , and even GIFs every single day to optimise the rendering metre of our website . It ’s a no brainer that belittled image sizes would make your website loading time faster . But , what are the tools that would avail you do that ?
Well , you’re able to also useUbuntu’sbuilt - inShotwell pic viewerapp . All you have to do is start the image , quality “ Save as ” and adjust the image qualityoptions consequently . However , Shotwell is not effective in size reduction and the personnel casualty in timbre is noticeable .
On that note , here ’s a collect list of good look-alike condensation apps for Linux which will not constrict images but also transform , edit , resize them for you .
tabular array of depicted object
Best Image Compression Apps For Ubuntu
Before we begin with the list , I would wish to note down a couple of things . We have a stock process where we use JPGs for color images and PNGs for text - free-base images . In general , PNG is a lossless compression and compressing them takes a hatful of time and the resolution in insignificantly small file size . So , you might be good withresizing a PNGrather than constrict it . JPGs are lossy concretion and compressing a JPG is much more worthwhile .
Command-Line Tools
1. ExifTool
EXIF and metadata comprise a underage part of the overall image Indian file size . In some vitrine , it is pointless to upload an icon with all the EXIF and metadata . In such a case , you could use the EXIF tool which can view , edit , and delete EXIF information . To view the EXIF data of your trope , use the following command .
To dispatch all the EXIF and metadata , employ the following command . Do note that , not all of the metadata can be cancel using any tool .
Supported Image Formats : JPG , PNG , CR2 , etc
2.FFmpeg
FFmpeg is the most utilitarian command - line media cock for Linux . It candownload filing cabinet , TV , compress and change medium , and a whole lot of other poppycock . you may use FFmpeg to compress and change over images to the required format . If you have n’t installed FFmpeg , you’re able to quickly do so by using the next instruction .
The bidding to compress an prototype is as follows . you could toggle the compression value by changing the time value beside the choice “ -compression_level ” .
Additionally , you may also scale trope in the same program line by adding “ -vf scale=675:407 ” . So the final bidding will look like the following .
you may also batch process images within a particular directory using FFmpeg . However , I would recommend doing that only if you are write a playscript for the server - side .
substantiate Image Formats : JPG , PNG , CR2 , SVG , BMP , GIF , etc
VisitFFmpeg GitHub
3. ImageMagic
ImageMagic is the most advanced free statement - line software entourage available for image densification and use . It ’s fundamentally built to be used on RHEL or CentOS servers and patronize compaction for over 200 + ikon data format . However , you may still download and apply it on other Linux distros . For Debian - base , it ’s available in the apt repository and for other distros , you need to download and compile the reservoir codification . Below are the set of commands to do that .
ImageMagic has 2 commands , namely mogrify and win over , to compress , convert , and edit images . By default , mogrify modifies the original image whereas convert creates a modified copy of it . It ’s easy to batch compress multiple persona using these commands . In our case , it ’s deadening to transfer image one - by - one in GIMP or Photoshop and resize them . We upload images to our web site with a resolution of 675×450 pel . Hence , in club to batch convert all the screenshots to the required formatting , I execute the undermentioned program line . The “ * . * ” denotes that every file in the directory needs to be resize to 675×450 .
In case you get trope relegating misplay , you postulate to add the open - source libraries for the exceptional image file type . Head over tothis pagefor selective information .
In slip you just want to remove the EXIF and metadata from the image without compact it , you may use the following convert command .
hold up Image Formats : JPG , PNG , CR2 , SVG , BMP , GIF , and 200 +
What ’s full ?
What ’s not ?
DownloadImageMagick for Ubuntu
GUI-based Apps
4. Trimage
Trimage is a GUI base open - reservoir image compression tool which uses the ImageOptim API . you could seldom apply theImageOptim webpagefor a one - off scenario . instead , you’re able to also try the GUI desktop translation which is the Trimage Image Compressor .
Trimage Image Compressor is quite visceral to use however it had 2 major problem . first , it supercede the original paradigm with the compressed ones , so I had to always backup the original paradigm . Secondly , there is no way to alter the concretion level and the default compression level is faint .
Supported Image Formats : JPG , PNG
Installation command :
VisitTrimage GitHub
4. XnConvert
XnConvert is a tool cater by XnSoft to compress , convert , edit various effigy files . It is ill-tempered - platform and quite powerful when compare to Trimage . Foremost , unlike Trimage , it works with a variety of range types like CR2 , DNG , BMP , JPG , PNG , etc . Next up , you get drilled down controls like adjusting the size , filter , color counterpoise , etc . It is more like Photoshop or GIMP but the editing body of work in batch for multiple images .
To edit the image , you require to set up actions from the action mechanism tab by clack on the action tablet . On the same tab key , you also get a preview of how the prototype will attend like post the edit .
Supported Image Formats : JPG , PNG , CR2 , SVG , BMP , GIF , DNG , etc
DownloadXnConvert for Ubuntu
Online Tools
5. Caesium
Caesium is a pop cross - platform range compressor build for web , photographers , etc . It also has a Linux variant but we will be only talk about the web app . The connection app is quite intuitive and support rebirth of upto 5 images which can be a maximum of 10 M each . Caesium does n’t salt away your image on the server which is good if you are deal with sensitive icon . The World Wide Web app lets you control the tone of compression where 100 being the highest and 1 being the low . you may also opt - in for lossless compression in case you want to cut the range of a function size on your memory .
Apart from the entanglement app , the Linux variant expect you to download andcompile the source - codeusingQt5 . Since , the software is not tested on Linux as per the GitHub repo , I doubt the stability of the app .
VisitCaesium Online Image Compressor
Web API Solutions
6. Cloudinary
Cloudinary is an enterprise - grade image densification solvent . In case your WWW portal deals with lots of epitome and video datum , you’re able to use the Cloudinary API to contract , convert medium on - the - fly . Cloudinary has a destitute variant which is throttle to 25000 image transformation or 200 minutes of video condensation per month . You have to implement the API within your web app computer code and there’senough documentationavailable on the Cloudinary website .
Supported Image Formats : JPG , PNG , CR2 , DNG , SVG , BMP , etc
VisitCloudinary World Wide Web Media API
Closing Words
FFmpeg is a ripe solution for one - time employment . If you deal with a muckle of JPGs and PNGs , ImageMagic is a practiced command - line option . For a standalone creature , XnConvert works well with divers image formats and I personally use it for good deal image processing . In case you handle a web server and you want a wholesome root for image densification , Cloudinary is a good solution .
Also Read : How to Download High - Quality Images from Google Play and App Store