export_animation
Exports an animation to GIF or numbered PNG sequence with optional scaling and a background color, preserving the original sprite for safe sharing.
Instructions
Export the animation for sharing: a GIF (or PNG sequence), scaled, on a background.
The sprite itself is never changed: the background is added to a temporary copy. Use this instead of a Lua saveCopyAs for previews.
Args: filename: Aseprite file to export output_filename: Output path; .gif gives an animation, .png a numbered sequence tag: Export only this animation tag; "" exports every frame scale: Integer nearest-neighbour scale factor, 1-64 (default 1) background: Optional hex colour filled behind every frame, e.g. "#E9EEF2" so a dark outline reads in any viewer; "" keeps transparency
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "<filename>",
"output_filename": "<output_filename>"
},
"name": "export_animation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| scale | No | ||
| filename | Yes | ||
| background | No | ||
| output_filename | Yes |