ImageTune

https://github.com/connerfritz/imagetune

Example Usage

Will resize to a max 250px JPEG with an 80% quality setting.