Image Optimization

Layer0 provides a simple HTTP service for optimizing images:

JavaScript
https://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 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.

Examples:

Quality:

Height: