Action Image
Invert Channels
Inverts individual color channels (Red, Green, Blue, Alpha) of an image.
Node IDInvertChannelsAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Source File Path sourceFilePath | file_picker | Yes | — | The full path to the source image. |
Output File Path (Optional) outputFilePath | file_picker | No | — | The full path to save the processed image. If blank, saves next to source with "_inverted" suffix. |
Invert Red Channel invertRed | boolean | No | true | If true, inverts the red channel. |
Invert Green Channel invertGreen | boolean | No | true | If true, inverts the green channel. |
Invert Blue Channel invertBlue | boolean | No | true | If true, inverts the blue channel. |
Invert Alpha Channel invertAlpha | boolean | No | false | If true, inverts the alpha channel (transparency). |
Overwrite overwrite | boolean | No | false | If true, overwrites an existing file at the output path. |
Create Directory createDirectory | boolean | No | true | If true, creates the parent directory for the output file if it doesn't exist. |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | Triggers the channel inversion. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
On Success output0 | object | outputFilePath | Fires on success and contains the output file path. |