09 February 2016 - Ken Burns slideshow
almost 9 years ago by Encoding.com Product Team
You can add Ken Burns effect for images in slideshow.
You just need to specify starting and ending frames and duration.
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>AddMedia</action>
<source>[SlideSource]?effect=kenburns&direction=[EffectDirection]&size=[SlideSize]&duration=[Duration]&transition=[on|off]</source>
<source><!-- next slides --></source>
<slideshow>1</slideshow>
<format>
<output>[OutputFormat]</output>
<size>[OutputSize]</size>
</format>
</query>
{
"query": {
"userid": "<<id>>",
"userkey": "<<key>>",
"action": "AddMedia",
"source": [
"[SlideSource]?effect=kenburns&direction=[EffectDirection]&size=[SlideSize]&duration=[Duration]&transition=[on|off]",
""
],
"slideshow": "1",
"format": {
"output": "[OutputFormat]",
"size": "[OutputSize]"
}
}
}
Source params description
Parameter Name | Description | Description | Allowed Values |
---|---|---|---|
direction | Effect description | [StartX],[StartY],[StartWidth];[EndX],[EndY],[EndWidth] | |
StartX | Left coordinate of the starting frame | Positive Integer(in pixels) | |
StartY | Top coordinate of the starting frame | ||
StartWidth | Starting frame width. Height would be calculated automatically. | ||
EndX | Left coordinate of the ending frame | ||
EndY | Top coordinate of the ending frame | ||
EndWidth | Ending frame width. Height would be calculated automatically. | ||
Examples: | 1. Image: 800x600; Starting frame width: 600; 10% zoom out from center. direction=100,75,600;70,53,660 2. Image: 800x600; Starting frame width: 600; 10% zoom in from center. direction=100,75,600;130,98,540 3. Image: 800x600; Starting frame width: 600; Move from left top corner to right bottom corner w/o zoom. direction=0,0,600;200,150,600 4. Image: 800x600; Starting frame width: 600; Frame at left side vertically centered zoom out to fill width. direction=0,75,600;0,0,800 | ||
size | Resulting frame size | [Width]x[Height] | |
duration | Effect duration | Positive integer(in seconds) | |
transition | Enable fade transition between slides | on,off |