Jpegoptim: How to Optimize and Compress JPEG in Linux Commandline

You can optimize Jpeg images on linux command line (= reduce the size to load images faster).
In order to achieve that, you can make use of the ‘jpegoptim’ application.
On ubuntu/debian systems:

 
apt-get-install jpegoptim

To optimize the jpeg file:

jpegoptim $file
  or
jpegoptim --size=1024 $file    (target 1Mb size)
Share your love