jpegoptim for image optimization


Last time We was talked about jpegtran. You can check it by link: .

Today, We will talk about jpegoptim. jpegoptim is a utility for optimizing JPEG files. It provides lossless optimization (based on optimizing the Huffman tables) and “lossy” optimization based on setting a maximum quality factor.

Installation of jpegoptim

For Debian users:

apt-get install jpegoptim
Usage of jpegoptim

To perform optimization, just run the command:

jpegoptim file.jpg

It is better to use an additional parameter to cut out all metadata that is not needed on the site:

jpegoptim file.jpg --strip-all

To optimize all JPG images in a folder at once:

jpegoptim * .jpg --strip-all

That’s all.

You can read more linux guides by link

Viva La Linux!

Leave A Comment