Edgio provides a simple HTTP service for optimizing images:
The API accepts the following query parameters:
img- the source image URL
Optional (specify one of the following):
quality- quality between 1 and 99
width- the maximum output width
height- the maximum output height
The image optimizer will only return an optimized image for mobile browsers. Desktop browsers are served the original image.