If you think you can optimize further the compressed image, you can re-run the command above but this will not make any difference as you can see below : Read: 4 Benefits of Compressing Files and Folders Using Tar Backup in Linux OS Normally the original and compressed images should have the same quality. Now try to open the compressed image to see if there are quality differences. Since this overwrites the original file, make sure to perform a backup before launching the command above. This has resulted in optimizing the original image by 15.45%. If we now run the command below to compress the image lion.jpg : ![]() Read: How to find the largest files on Linux However before doing so let us first find out the size using the du command:Īs you can see, the actual size of the jpg image above is 1.7M. To compress an image using Jpegoptim without losing the original quality, the syntax is as follows :įor instance the command below will optimize our example file (lion.jpg). Jpeg compressor Jpegoptim installation Compressing images using Jpegoptim Now to install jpegoptim, run the command below : Since Jpegoptim is available on the official Ubuntu repository, it can be installed using the apt-get package manager tool.īefore starting the installation however, it would be best to update your system’s repository list so that you get the latest available of the application. Lossless optimization is supported as well. Jpegoptim is a command line utility that help compress and optimize jpg, jpegs as well as jfif files without losing the original quality. ![]() In this article we will use two command-line based utilities, jpegoptim and OptiPNG. There are many GUI applications on Linux that help optimize and compress images while retaining the original quality.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |