quantize quantize
Color quantization. Specifies color-quantization attributes for GIF output conversion.
quantize= *
type*[, *
dither*[, *
numColors*[, *
colorList*]]]
Properties section-8ab5035055b24b858270d260912a7f3d
Request attribute. It applies regardless of the current layer setting. Used only if fmt=gif
, fmt=gif-alpha
, fmt=png8
, or fmt=png8-alpha
. Ignored otherwise.
The colors specified with colorList
must consist of RGB values in hex6 format (see color without 0x
prefix. No other color specifiers are permitted. The modifier numColors
must be 2–256.
Default section-ca3e817617244e8798ccff67b2023a32
quantize=adaptive,diffuse,256
Example section-e34aca7587d548a7ae9d4266b80c9451
Generate a GIF thumbnail using the web
palette and no dithering:
http:// *
Server*/myRootId/myImageId?req=tmb&fmt=gif&quantize=web,off
Convert the image to a bi-tonal GIF with key-color transparency. And, force colors to black and white:
http:// *
Server*/myRootId/myImageId?fmt=gif-alpha&wid=100&quantize=adaptive,off,2,000000,ffffff