Edgio provides a simple HTTP service for optimizing images:
JavaScript
1https://opt.moovweb.net
The API accepts the following query parameters:
Required:
img
- the source image URL
Optional (specify one of the following):
quality
- quality between 1 and 99width
- the maximum output widthheight
- the maximum output height
Examples
Quality:
Height: