How to adjust brightness, contrast, saturation or gamma of an element?
You can adjust the brightness, contrast, saturation or gamma of an element by using the correction
property of the image or video element.
The correction
property is an object with the following properties:
brightness
: number (from -1 to 1)contrast
: number (from -1000 to 1000)gamma
: number (from 0.1 to 10)saturation
: number (from 0 to 3)
Check the values for each property in the API specification page.
Example:
{
"type": "image",
"src": "https://cdn.json2video.com/assets/images/london-01.jpg",
"correction": {
"brightness": 0.5,
"contrast": 100
}
}
Does the API can remove audio pauses automatically?
JSON2Video API supports trimming a video or an audio if you specify the starting point and the duration, but it does not support trimming audio pauses automatically.