In reply to Tomas M..

EWWW Image Optimizer is superb. It optimizes automatically all new images of media library, has cloud optimization support, can optimize different types of images (jpg, png, gif), convert images (gif to png is great), can optimize theme images and any images in custom locations and support scheduled runs.

After seeing the title of this post I was surprised it was not about EWWW.