PyJpegOptim is a utility for optimizing JPEG files.