Image overlay can be used to brand a video or add a visual label in the form of an image. It takes the following parameters embedded in image_overlay
.
Parameter | Description |
url | This is the required parameter for image overlay, it can be a URL to an image that needs to be overlayed. |
horizontal_margin | This parameter defines the horizontal coordinate value of the corner (determined by |
vertical_margin | This parameter defines the vertical coordinate value of the corner (determined by |
horizontal_align | This parameter specifies the horizontal alignment of the overlayed image and can be either |
vertical_align | This parameter specifies the vertical alignment of the overlayed image and can be either |
width | Width of the overlayed image. Default: |
height | Height of the overlayed image. Default: |
curl -L -X POST 'https://api.gumlet.com/v1/video/process' \-H 'Authorization: Bearer <YOUR API KEY>' \-H 'Content-Type: application/json' \-d '{"input":"https://gumlet.sgp1.digitaloceanspaces.com/video/sample_2.mp4","source_id": "5f462c1561cf8a766464ffc4","format": "mp4","image_overlay": {"url": "https://assets.gumlet.io/assets/logo.svg?format=png","height": "10%","width": "10%","horizontal_align": "left","horizontal_margin": "5%","vertical_align": "top","vertical_margin": "5%"}}'