Action Image
Image Data Operations
Read images from disk to base64/bytes or save base64/bytes data as image files. Useful for API integrations and data processing.
Node IDImageDataOperationsAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Operation operation | enum | Yes | write | 'read' loads an image and outputs base64/bytes, 'write' saves base64/bytes as an image file. |
File Path filePath | file_picker | Yes | — | For 'read': path to the image to load. For 'write': path where the image will be saved. |
Image Data (Write Mode) imageData | textarea | No | — | The raw image data as a base64 string or binary data. Only used in 'write' mode. Can be set by a data connection. |
Data Type dataType | enum | Yes | base64 | Format for image data. 'base64' for base64-encoded strings, 'bytes' for raw binary data. |
Output Format (Write Mode) format | enum | No | png | The image format to save as. Only used in 'write' mode. |
Overwrite overwrite | boolean | No | false | If true, overwrites an existing file at the output path (write mode only). |
Create Directory createDirectory | boolean | No | true | If true, creates the parent directory if it doesn't exist (write mode only). |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | Triggers the operation. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
Image Data / File Path output0 | string | imageData | For 'read': base64 or bytes string of the image. For 'write': path to the saved file. |