Transform
transformMove, flip, rotate, scale, outline, or crop pixel art. Provides translation, mirroring, rotation at 90° multiples, and integer-only scaling to preserve crisp pixels.
Instructions
Move, flip, rotate or scale pixels. Ops: 'translate', 'flip', 'rotate', 'scale', 'outline', 'crop_to_content'. Rotation is only clean at 90° multiples — arbitrary angles destroy pixel art, so anything else needs allowLossy. Scaling is nearest-neighbour and integer-only for the same reason.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dx | No | ||
| dy | No | ||
| op | Yes | ||
| axis | No | For 'flip'. | |
| angle | No | Degrees, clockwise. For 'rotate'. | |
| color | No | Outline colour, for 'outline'. | |
| frame | No | 1-based frame number. Omit to use the active frame. | |
| layer | No | Layer name. Omit to use the active layer. | |
| scope | No | What the transform applies to. 'selection' falls back to the cel when nothing is selected. | selection |
| factor | No | For 'scale'. | |
| sprite | No | Sprite filename or id. Omit to use the sprite Aseprite has focused. | |
| thickness | No | ||
| allowLossy | No | Permit a non-90° rotation or non-integer scale. Ask the user first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| scope | Yes | ||
| bounds | No | ||
| sprite | Yes | ||
| pixelsChanged | Yes |