gradient_background
Replace an image's background with a vertical gradient blending two chosen colors, defined as hex or RGB values, to create clean product or design visuals from a local JPG, PNG, or WEBP file.
Instructions
Replace the background with a vertical gradient from top_color to bottom_color.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_color | Yes | Color as hex ('#FF8C00', '#FF8C0080') or RGB(A) ('255, 140, 0' or '255, 140, 0, 255'). | |
| image_path | Yes | Path to a local JPG, PNG, WEBP, BMP or GIF image (1 KB to 10 MB). | |
| output_path | No | Where to save the result. Defaults to '<name>_<operation>.<ext>' next to the input image. | |
| bottom_color | Yes | Color as hex ('#FF8C00', '#FF8C0080') or RGB(A) ('255, 140, 0' or '255, 140, 0, 255'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |