Or the command line util pngcrush
...but really. ImageOptim is super awesome and zero-effort.
But really, why isn't ImageOptim itself available in command-line form?
> Automates ImageOptim, ImageAlpha, and JPEGmini for Mac to make batch optimisation of images part of your automated build process.
> Mac
Why would anyone run a CI server on a Mac?