Reference image
referenceImport an external image as a locked, semi-transparent reference layer to trace proportions or sample colors, or extract its dominant palette without importing.
Instructions
Bring an external image into the sprite as a reference layer, so you can trace proportions or sample colours from it. Ops: 'import' (place an image on a locked, semi-transparent layer above the art), 'sample_palette' (read its dominant colours without importing), 'list', 'remove'. Importing at a different size uses nearest-neighbour; a photo scaled down to 32×32 is a starting point for a silhouette, never a finished sprite.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| op | Yes | ||
| fit | No | How to size the image against the canvas. | contain |
| name | No | Layer name. Default: 'reference'. | |
| path | No | Image file to read. | |
| colors | No | For 'sample_palette'. | |
| sprite | No | Which sprite: its id as '#7' (what every result reports back, and the only unambiguous form — two unsaved documents are both called 'Sprite'), its filename, or its display name. Omit to use the sprite Aseprite has focused. | |
| opacity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| layer | No | ||
| width | No | ||
| height | No | ||
| sprite | Yes | ||
| palette | No | Dominant colours with their share of the image. | |
| references | No |