aseprite_import_image
Import an external PNG, JPG, or GIF into Aseprite as a new sprite for tracing or onto a layer or frame of the active document at specified coordinates.
Instructions
Bring an external image into the pipeline. With asNewSprite it becomes a new document (useful for tracing over a reference, or for slicing an existing sprite sheet by hand). Otherwise it is drawn onto a layer of the active document at (x, y) - handy for stamping a palette reference, a logo, or a texture into a piece.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Left edge to place the image at (default 0). | |
| y | No | Top edge to place the image at (default 0). | |
| frame | No | Target frame (default 0). | |
| layer | No | Target layer (a new layer is created when omitted). | |
| source | Yes | Absolute path to the image to import (PNG, JPG, GIF, ...). | |
| document | No | Document to act on: a short name inside the art folder ("hero"), a relative path, or an absolute .aseprite path. Omit to use the active document. | |
| asNewSprite | No | Import as a new document rather than into the active one. |