Paint: Image filter
paint_filterApplies image filters such as blur, sharpen, brightness, or grayscale to a named canvas layer or area, enabling precise visual adjustments after drawing.
Instructions
Filters a layer: blur, sharpen, edge_detect, brightness, contrast, gamma, saturation, hue_rotate, grayscale, sepia, invert, threshold, posterize, pixelate, noise, vignette, chroma_shift, dither. amount is per filter (blur px, degrees, +/- levels, multiplier); area limits it; level = posterize/dither levels.
Target the canvas by name (created with paint_canvas) and optionally a layer index. Layers, filters and undo work the same for every drawing tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | Restrict to a rectangle; omit for the whole canvas | |
| name | Yes | ||
| seed | No | ||
| layer | No | Target layer index; defaults to the active layer (see paint_canvas). | |
| level | No | ||
| amount | No | ||
| canvas | Yes | Canvas name. Letters, digits, space, dot, dash, plus; the .png/.paint suffix may be included or omitted. | |
| preview | No | Image reply: auto/thumb = downscaled picture back into the result, full = unpixelated, none = text only | |
| preview_size | No | Longest edge of the returned thumbnail |