Export
exportConvert Aseprite art into game-ready files: PNG, GIF, spritesheet with JSON atlas, numbered frames, or Aseprite copy. Control layers, tags, scaling, and sheet layout for engine consumption.
Instructions
Write game-ready files. Ops: 'png' (single frame), 'gif' (animation), 'spritesheet' (packed sheet plus a JSON atlas with per-frame and per-tag data), 'frames' (numbered PNGs), 'aseprite' (save a copy of the source). Spritesheet is what an engine actually consumes: pass sheetType and byTag to control layout. Exporting does not save the working document — use sprite_manage op 'save' for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| path | Yes | Output file path. For 'frames', a pattern like 'walk_{frame}.png'. | |
| tags | No | Export only these tags. | |
| trim | No | Trim transparent margins; the atlas keeps the original offsets. | |
| byTag | No | Split the sheet by animation tag. | |
| frame | No | 1-based frame number. Omit to use the active frame. | |
| scale | No | Integer upscale, nearest-neighbour. | |
| layers | No | Export only these layers. | |
| sprite | No | Sprite filename or id. Omit to use the sprite Aseprite has focused. | |
| padding | No | Pixels between frames; prevents bleed at non-integer zoom. | |
| sheetType | No | Spritesheet layout. | horizontal |
| includeJson | No | Write a sibling JSON atlas for 'spritesheet'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| atlas | No | ||
| files | Yes | ||
| frame | No | Which frame a single-frame export wrote. Defaults to the active frame, which is not always the one you drew on. | |
| width | No | ||
| height | No | ||
| sprite | Yes | ||
| frameCount | No |