Inpaint sprite
inpaint_spriteInpaint a selected region of an existing sprite by supplying an image and matching mask, then composite the generated patch while preserving pixels outside the mask.
Instructions
Inpaint a selected region of an existing sprite. image_path and mask_path must have equal dimensions. The returned patch is clipped to the original binary mask, then composited with source pixels outside the mask preserved. Set overlay_path to save transparent patch PNGs as well as composite PNGs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| prompt | Yes | ||
| palette | No | ||
| variants | No | ||
| mask_path | Yes | ||
| background | No | auto | |
| image_path | Yes | ||
| output_dir | No | ||
| overlay_path | No | ||
| preserve_palette | No |