Rd Kcentroid
rd_kcentroidDownscale images while preserving color palettes using k-means centroid selection, with an option to re-add outlines.
Instructions
K-Centroid Resize: downscale images with k-means palette preservation (centroids = target colors), optionally re-adding an outline.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image_paths": "<image_paths>"
},
"name": "rd_kcentroid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| height | No | ||
| outline | No | ||
| centroids | No | ||
| image_paths | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||