pixelate_reference
Converts a reference image into pixel art on a new layer by averaging pixels, reducing to a chosen palette, with optional dithering, despeckling, background removal, and edge cleanup.
Instructions
Turn a reference picture into pixel art on a new layer: the faithful way to
recreate a photo or painting. The picture (or the crop_* part of it, in
its own pixels) is shrunk to width x height by averaging, so each
pixel is the true colour of that area. height defaults to the picture's
aspect. It is then snapped to colors colours chosen from the picture, or
to palette (#rrggbb list) to match an existing one. dither is
none, ordered, or diffusion. despeckle removes lone noise
pixels. remove_background clears a white sheet or flat backdrop (and the
light fringe it leaves), before the palette is chosen so no colours are spent
on it. clear_edges drops bits of neighbouring art a crop catches at its
edges, keeping the subject and anything floating clear of the edges. To cut
every pose out of a character sheet at once, use split_sheet. Refine the
result by hand, and check it with compare_to_reference. One undo step.
Headless: pass file.
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_path": "<image_path>",
"width": "<width>"
},
"name": "pixelate_reference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| file | No | ||
| width | Yes | ||
| colors | No | ||
| crop_x | No | ||
| crop_y | No | ||
| dither | No | none | |
| height | No | ||
| palette | No | ||
| despeckle | No | ||
| crop_width | No | ||
| image_path | Yes | ||
| layer_name | No | Reference pixels | |
| clear_edges | No | ||
| crop_height | No | ||
| remove_background | No |