Image to pixel art
pixelate_imageTurn a photo or illustration into pixel art: shrink it to a pixel grid and reduce it to a few colours (or a named palette). Returns the PNG.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Nearest-neighbour upscale of the returned PNG, capped at 1024 px | |
| width | No | Width of the pixel grid in pixels (height keeps the aspect ratio) | |
| colors | No | Number of colours when no palette is given | |
| palette | No | Palette name (pico-8, sweetie-16, endesga-32, game-boy, 1-bit) or hex colours like "#1a1c2c,#5d275d" | |
| image_url | No | Public http(s) URL of a PNG or JPEG (max 4 MB, 2048x2048) | |
| image_base64 | No | PNG or JPEG as base64 (or a data: URL), if there is no public URL |