How to Bulk Optimize JPG and PNG Images on Ubuntu

While there are lots of Wordpress plugins that compress image files, they're mostly paid, ...