convert
Convert an image from URL or base64 into pixel art by quantizing its colors to a chosen palette. Returns PNG and sprite data for immediate use.
Instructions
Convert an image (URL or base64) to pixel art by quantizing to a palette. Returns both the PNG and sprite data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Scale factor for output (default 4) | |
| width | No | Target width in pixels (default 16) | |
| height | No | Target height in pixels (default 16) | |
| source | Yes | Image URL (https://...) or base64 data URI | |
| palette | No | Palette ID (default "pico8") |