Overview
Sources
Libraries
Images API

Quantise quantise

Generate a quantised image using a 8 bit-depth palette of the original image. Quantisation is often used to reduce size of PNG files without degrading it's color quality.

This parameter only applies to png output format.

Values

  • true or 1: generates a quantised image.
  • false or 0: generated a non quantised image.

The default value for this parameter is false.

Examples

Generate a quantised png using the params quantise=true and format=png:

GET
https://assets.imglab-cdn.net/woman.jpeg?quantise=true&format=png
Woman holding a camera, image generated as a quantised PNG file using quantise parameter and png output format.
x px