---
id: fast-colors.quantizeconfig.targetpalettesize
title: QuantizeConfig.targetPaletteSize property
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-colors](./fast-colors.md) &gt; [QuantizeConfig](./fast-colors.quantizeconfig.md) &gt; [targetPaletteSize](./fast-colors.quantizeconfig.targetpalettesize.md)

## QuantizeConfig.targetPaletteSize property

Desired output palette size. Actual output may vary in edge cases such as images with very few colors.

<b>Signature:</b>

```typescript
targetPaletteSize: number;
```