subsample
Specify a chroma subsampling scheme to use when the image is encoded.
Chroma subsampling is the practice of encoding images by implementing less resolution for chroma information than for luma information, taking advantage of the human visual system's lower acuity for color differences than for luminance.
Applying chroma subsampling produces smaller file sizes without affecting image quality significantly.
This parameter only applies to the output formats jpeg and avif.
jpeg
avif
444
420
The default value for this parameter is 420, so a 420 chroma subsampling scheme is applied by default to all output formats supporting it.
Prevents chroma subsampling with a value of 444 using subsample=444:
subsample=444
GET https://assets.imglab-cdn.net/flowers.jpeg?subsample=444 x px
https://assets.imglab-cdn.net/flowers.jpeg?subsample=444
Forces chroma subsampling with a value of 420 using subsample=420:
subsample=420
GET https://assets.imglab-cdn.net/flowers.jpeg?subsample=420 x px
https://assets.imglab-cdn.net/flowers.jpeg?subsample=420