LOG IN SIGN UP
Documentation

Quality

Features

Description

The quality parameter enables control over the compression level for lossy file-formatted images.

API Pattern

quality={value}

Parameter

Parameter Description
quality Output image quality for lossy file formats.

Parameter Values

Value Description
Integer A whole number between 1 and 100.

Notes

  1. The quality parameter can be applied to the following output formats: png8, jpg, pjpg, webp, and webply
  2. A lower number represents a lower-quality output image with a smaller file size.
  3. A higher number represents a higher-quality output image with a larger file size.
  4. If no quality parameter is present for jpg, pjpg, or webp the output image will be returned at the default value set in the Image Optimizer user interface.
  5. When only specifying quality; if the output image file size is larger than the input image, the original image will be delivered.

Examples

Description HTML Demo
Deliver at the default compression level - Output an image with the default compression level. <img src="image.jpg?quality=85"/> Example
Advanced Examples (Combining Additional Parameters)
Description HTML Additional Param Demo
Transcode and deliver at the default compression level - Convert the image format to jpg and output an image at the default level of compression. <img src="image.png?format=jpg&quality=85"/> format Example