Optimize JPEG images recursively (jpegoptim)
find . -name "*.[Jj][Pp]*[Gg]" -printf ' jpegoptim > %p\n' -exec jpegoptim -f --strip-none --overwrite --quiet {} \;
This command searches for JPEG files (*.jpg, *.jpeg, etc.) and uses jpegoptim to apply lossless optimization. The -f flag forces the optimization, --strip-none preserves all metadata, --overwrite replaces the original files with the optimized versions, and --quiet suppresses output for a smoother, silent operation.