Layer0 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 maximimum output width
- height - the maximimum output height
The image optimizer will only return an optimized image for mobile browsers. Desktop browsers are served the original image.