image_convert
Transform any image into detailed pixel art using a unified pipeline. Control downsampling, dithering, and palette options to achieve precise retro styles for games and designs.
Instructions
Converts an image to pixel art using the full unified PixelForge pipeline (Hybrid/Sobel/Box/Nearest downsampling, Hybrid OKLab-BGM or Lospec/.gpl/.hex/.pal palette, 19 dithering modes, Kuwahara pre-brush, tone controls, orphan/majority cleanup, 1px inner/outer/ink outlines, indexed PNG, and pixel grid).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hue | No | ||
| grid | No | Draw 1px pixel grid on upscaled output. | |
| gamma | No | ||
| width | No | Target pixel width (height auto-computed if omitted). | |
| dither | No | bluenoise | |
| factor | No | Alternative integer downscale factor. | |
| height | No | Optional target pixel height. | |
| preset | No | Optional preset id (e.g. 'hybrid-crisp', 'kurzgesagt-pixel', 'chunky-ink-sprite', 'pico-8', 'sprite', 'one-bit'). | |
| indexed | No | Write compact Indexed-Color PNG (PLTE+tRNS) when <= 256 colors. | |
| palette | No | Color count to extract (2..256), built-in id ('endesga-32', 'pico-8', 'kurzgesagt-24'), 'lospec:<slug>', palette file path (.gpl/.hex/.pal/.json), or 'none'. | |
| upscale | No | Integer nearest-neighbor output upscale. | |
| contrast | No | ||
| kuwahara | No | Pre-pixel Kuwahara flat-paint radius (0=off, 2..5=flat cartoon blocks). | |
| resample | No | hybrid | |
| brightness | No | ||
| input_path | Yes | Input image path. | |
| saturation | No | ||
| output_path | Yes | Output PNG path. | |
| extract_mode | No | hybrid_bgm_oklab | |
| outline_mode | No | none | |
| outline_color | No | #181425 | |
| remove_orphans | No | Remove isolated 1-pixel strays. | |
| dither_strength | No | Dither strength in [0.0, 1.0] (palette-spread normalized). | |
| outline_corners | No | ||
| smooth_majority | No | 3x3 5-of-9 majority speck smoothing. |