design_import_image
Imports base64-encoded image data into a sketch and creates a composite:image layer for placement, sizing, fitting, opacity, and blending.
Instructions
Import a base64-encoded image into the sketch and create a composite:image layer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| fit | No | Default "cover". | |
| data | Yes | Base64-encoded image data. | |
| name | No | Asset display name. | |
| width | No | ||
| height | No | ||
| opacity | No | ||
| mimeType | Yes | "image/png", "image/jpeg", or "image/webp". | |
| blendMode | No | ||
| layerName | No |