I’m trying to make my images (for a watermark) slightly transparent. Is this possible?
Yes you can. You can use the opacity
property to make your image asset transparent.
{
"timeline": {
"soundtrack": {
"src": "https://s3-ap-southeast-2.amazonaws.com/shotstack-assets/private/epic.mp3",
"effect": "fadeInFadeOut"
},
"tracks": [
{
"clips": [
{
"asset": {
"type": "image",
"src": "https://shotstack-assets.s3.ap-southeast-2.amazonaws.com/branding/logo-reverse.png"
},
"start": 0,
"length": 1.96,
"scale": 0.15,
"position": "center"
},
{
"asset": {
"type": "image",
"src": "https://shotstack-assets.s3.ap-southeast-2.amazonaws.com/branding/logo-reverse.png"
},
"start": 2,
"length": 1.96,
"scale": 0.15,
"position": "center",
"opacity": 0.75
},
{
"asset": {
"type": "image",
"src": "https://shotstack-assets.s3.ap-southeast-2.amazonaws.com/branding/logo-reverse.png"
},
"start": 4,
"length": 1.96,
"scale": 0.15,
"position": "center",
"opacity": 0.5
},
{
"asset": {
"type": "image",
"src": "https://shotstack-assets.s3.ap-southeast-2.amazonaws.com/branding/logo-reverse.png"
},
"start": 6,
"length": 1.96,
"scale": 0.15,
"position": "center",
"opacity": 0.25
}
]
},
{
"clips": [
{
"asset": {
"type": "video",
"src": "https://s3-ap-southeast-2.amazonaws.com/shotstack-assets/footage/cat.hd.mp4",
"trim": 5
},
"start": 0,
"length": 10
}
]
}
]
},
"output": {
"format": "mp4",
"resolution": "sd"
}
}