Add Backdrop
backdropFrames videos and screenshots on a gradient, solid color, or wallpaper with padding, rounded corners, and a drop shadow, and can place them on 16:9, 1:1, 9:16, or 4:5 canvases.
Instructions
Frame a video or screenshot on a gradient, color, or wallpaper with padding, rounded corners, and a drop shadow, optionally on a 16:9/1:1/9:16/4:5 canvas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | Instead: a wallpaper image, scaled to cover. | |
| input | Yes | Path to the source video or image (png/jpg). | |
| aspect | No | Output on this aspect's canvas (1920x1080, ...), content scaled to fit. | |
| colors | No | Instead: 1 color = solid, 2-4 = diagonal gradient. | |
| output | No | Optional output path. Defaults under SCREENCAST_HOME/edits (screenshots for an image). | |
| preset | No | Gradient: desktop (default, dark slate), rec (red), amber, light. | |
| radius | No | Corner radius px (default ~1.2% of the longer side; 0 = square). | |
| shadow | No | Shadow blur px (default ~2.5%; 0 = none). | |
| padding | No | px around the content (default 6% of the longer side). | |
| overwrite | No | Allow replacing an existing file at the output path (default false). | |
| shadowOpacity | No | Default 0.5. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes | ||
| outputPath | Yes |