asset_nine_slice
Extract nine-slice data from images using 4 pixel offsets. Produces CSS border-image snippets and game-engine values (Unity, Godot, Phaser, PixiJS). Optionally creates Android 9-patch .9.png files.
Instructions
Emit a 9-slice config + CSS border-image snippet + Unity/Godot/Phaser/PixiJS-ready numbers from one image and 4 pixel offsets. Optionally also emit an Android .9.png with the 1px stretchable-region encoding. MCP equivalent of p2a nine-slice <image>.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Path to the source image. | |
| guides | Yes | Pixel offsets from each edge marking the fixed regions. | |
| out | No | Output directory. Defaults to the directory of the input image. | |
| android_9patch | No | Also emit <name>.9.png with Android 9-patch 1px-border encoding. |