Action Image
Create Image
Creates a new, blank image file at a specified path with a given size, format, and color.
Node IDCreateImageAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
File Path filePath | file_picker | Yes | — | The full path where the image will be created (e.g., "C:/temp/new_image.png"). |
Width width | integer min 0 | Yes | 512 | The width of the new image in pixels. |
Height height | integer min 0 | Yes | 512 | The height of the new image in pixels. |
Format format | enum | Yes | png | The image format to save as. |
Fill Color color | color | Yes | [0,0,0] | The RGB color to fill the new image with (e.g., [0, 0, 0] for black). |
Overwrite overwrite | boolean | No | false | If true, will overwrite an existing file at the specified path. |
Create Directory createDirectory | boolean | No | true | If true, creates the parent directory if it doesn't exist. |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | Triggers the action to create the image. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
On Success output0 | object | filePath | Execution path fired if the image is created successfully. Contains the Filepath as data |