Skip to content

Variable: mainColors ​

ts
const mainColors: ((count?) => CdnOperation) & NamedOperationCreator;

Defined in: ops/effects.ts:387

Returns the dominant colors as JSON; must be the last operation.

See ​

https://uploadcare.com/docs/effects-enhancements/#operation-main-colors

Example ​

ts
mainColors(8) // → -/main_colors/8/