Clean up AI pixel art from your code or from your AI coding agent. Free, no account.
| Tool | What it does | Use it for |
|---|---|---|
| clean | Finds the dot grid and gives every dot one solid color. Keeps the background. | Scenes, backgrounds, tiles |
| sprite | Removes the background and restores clean pixels. Transparent PNG with a dark outline by default. | Characters, items, props |
Results come back as PNG with one dot = one pixel.
Needs Node.js 18 or newer. Then ask your agent things like “Clean up assets/raw/knight.png as a 32-dot sprite and save it at 4× scale.”
Claude Code
claude mcp add dottrim -- npx -y dottrim-mcp
Cursor, Claude Desktop, Windsurf, … (MCP config JSON)
{
"mcpServers": {
"dottrim": {
"command": "npx",
"args": ["-y", "dottrim-mcp"]
}
}
}
Tools: dottrim_clean (input_path, output_path, dot_size, colors, scale) and dottrim_sprite (input_path, output_path, size, outline, colors, scale). PNG and JPEG input. MIT license. Source: github.com/Woooont/dottrim-mcp · npm
POST https://www.odwo.kr/dottrim/api/clear?<options> Content-Type: image/png <PNG bytes>
Send the raw PNG file as the body (not a form). Up to 4096 px on the long side.
| Option | Tool | Values | Meaning |
|---|---|---|---|
mode=dot | clean | Use the clean tool. Leave it out for sprite. | |
px | clean | 1–64 | Size of one dot in the input, in pixels. Default: automatic. |
size | sprite | 16, 24, 32, 48, 64 | Shrink so the longer side is this many dots. Default: keep. |
outline | sprite | 0 | No dark outline. Default: outline on. |
k | both | 8, 16, 32 | Palette size. Default: automatic. |
{
"png": "<base64 PNG, one dot = one pixel>",
"width": 41, "height": 42,
"repeat": false,
"me": { "left": 49, "daily": 50 }
}
| Status | Meaning |
|---|---|
| 200 | Done. repeat: true means the same image was sent before and was not counted. |
| 400 | image: not a readable PNG · size: too large |
| 429 | daily: daily limit reached |
| 503 | busy: try again in a moment |
curl -s -X POST -H "Content-Type: image/png" --data-binary @knight.png \
"https://www.odwo.kr/dottrim/api/clear?size=32" \
| python3 -c "import json,sys,base64; open('knight_clean.png','wb').write(base64.b64decode(json.load(sys.stdin)['png']))"