image_quantize
Reduce any image to the Pebble 64-color palette with selectable dithering, returning color usage stats and a preview.
Instructions
Quantize an image to the Pebble 64-color palette; return stats + preview.
Args:
source: a filesystem path, a base64 string, or a data: URI of the
source image (hosts without a filesystem send base64).
dither: "floyd-steinberg" (default), "none", or "ordered".
corrected: preview in the sunlight-corrected display values instead of
the bright uncorrected palette (reporting is unaffected).
Returns a stats object (colors used, per-pixel distance) plus the quantized preview image (2× nearest-neighbor upscale when small).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dither | No | floyd-steinberg | |
| source | Yes | ||
| corrected | No |