Image quantize
Try it interactively →POST /api/image-quantizeQuantize an image to N colours. Useful for retro / 8-bit / GIF-style effects, palette extraction, and low-bandwidth previews.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| image* | file | — | Input image (PNG / JPEG / WebP). |
| numColors | number (2…256) | 16 | Palette size after quantization. |
| dither | enum (none | fs | floyd | riemersma) | "none" | Dither algorithm. `none` = crisp pixel-art look. |
| format | enum (png | jpeg | webp) | — | Output format (defaults to input). |
Response
Modes: binary, base64-json. Cache: yes (24h TTL).