effects
Apply a visual effect to an image and save the altered copy to a new file. Choose from greyscale, sepia, invert, blur, sharpen, contrast, or brightness. Returns the output path and effect applied.
Instructions
Apply a single visual effect and write the result to a NEW file (source unchanged). Effects: greyscale, sepia, invert, blur (uses 'radius'), sharpen, contrast (uses 'factor'), brightness (uses 'factor'). Returns the output path and the effect applied. Unknown effect names raise an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | Yes | Output image path. A new file is created; the source is left untouched. | |
| path | Yes | Source image path. | |
| effect | Yes | One of: greyscale, sepia, invert, blur, sharpen, contrast, brightness. | |
| factor | No | Intensity multiplier for contrast/brightness (e.g. 1.3 = brighter, 0.8 = darker; defaults apply if omitted). | |
| radius | No | Blur radius in pixels (used only by the blur effect; default 2). |