Recursive jpegoptim Script A simple script that allows jpegoptim to run recursively on your server. How To Use Place in the server directory you would like to start the optimization. Run by typing ./optimize.sh Requirements Linux based system jpegoptim installed.