image_prep
Prepare images for Pebble apps: resize/letterbox to target sizes, quantize to 64 colors, and preview the result.
Instructions
Resize/letterbox an image to a named target, quantize, and preview it.
Args:
source: filesystem path, base64, or data: URI of the source image.
target: "emery" (200×228), "menu-icon" (25×25),
"appstore-banner" (720×320), or any platform name.
fit: "contain" (letterbox) or "cover" (center-crop).
dither: "floyd-steinberg" (default), "none", or "ordered".
corrected: preview in sunlight-corrected display values.
Returns a stats object (target size, colors used, distance) plus the prepared preview image (2× nearest-neighbor upscale when small).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | contain | |
| dither | No | floyd-steinberg | |
| source | Yes | ||
| target | No | emery | |
| corrected | No |