imgix APIs
Rendering API
Palette Color Count

Palette Color Count


Determines the size of the default palette returned by the palette parameter.

Default value is 6. Valid values are in the range 016. The value only specifies the number of colors in the default palette, given that the dominance palette may or may not be present.

The default set is strictly algorithmic, based on frequency of the color in the image, and is always available. The "dominance" set also weights frequency, but selects the colors to provide a more coordinated palette across the image's colorspace and names the colors by their relative values, like Vibrant.js (opens in a new tab) does. See the palette docs for more information about the palettes.


A very colorful little frog

Original Palette
Dominance Palette