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.









![[VIDEO] Accident în Bosanci / Mercedes C Class – 14.07.2025](https://mariusc.name/wp-content/uploads/2025/07/518111249_24165607809741343_5354842621648525201_n-218x150.jpg)


![Biserica Domnițelor din Suceava [galerie foto] Biserica Domnitelor, Suceava - vedere dinspre nord-est](https://mariusc.name/wp-content/uploads/2018/08/field_image_biserica-domnitelor-2018.08.12-01.jpg)
















