How to use Jpegoptim recursively

Jpegoptim is a Linux software that does what the name suggests: is does optimize jpg images. It is one of the two recommended software for Google Pagespeed optimization.

As this software doesn’t have a recursion parameter, we use a trick to parse all the subdirectories where we have jpeg images to be optimized.
[adsense:336×280:6928840684]

The command uses find:

find -type f -name "*.jpg" -exec jpegoptim --strip-all {} ;

Now be patient and wait until it does the job. You will probably be surprised how much it can reduce the size of some images (up to 40% for some thumbnails!).

Read about how to optimize PNG and GIF files with OptiPNG.

[adsense:336×280:5172905888]

If you know a better aproach into using this cool software, please leave a comment below.

LĂSAȚI UN MESAJ

Vă rugăm să introduceți comentariul dvs.!
Introduceți aici numele dvs.

Acest site folosește Akismet pentru a reduce spamul. Află cum sunt procesate datele comentariilor tale.

- Advertisement -spot_img
Noutăți

Articole similare

- Advertisement -spot_img
Ads Blocker Image Powered by Code Help Pro

Am detectat un ad blocker!

Am detectat că folosiți o extensie sau o funcție în browser care blockează reclamele. Pentru buna funcționare a site-ului, vă rog să o dezactivați. Vă mulțumesc!