import_image
Place a raster image from a file path or base64 bytes onto a new paint layer in Krita, with fit modes for contain, cover, stretch, or selection masking to bring AI-generated images in for editing.
Instructions
Put a raster image on a NEW paint layer. Provide path (inside the workspace) OR image_base64
(PNG/JPEG/WebP bytes). fit: contain (default), cover, stretch, none (natural size at x,y), or
selection (stretched over the selection and masked by it, soft edges included - for inpainting).
This is how images from an image-generation model get into Krita for further editing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| fit | No | ||
| name | No | Imported image | |
| path | No | ||
| width | No | ||
| height | No | ||
| parent | No | ||
| image_base64 | No |