{
"asset": {
"type": "video",
"src":"https://iamvideo-temp-assets.s3-us-west-1.amazonaws.com/3030/Cinequest%20Party.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230801T153714Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86399&X-Amz-Credential=AKIAQCAIMKFFMJCQRLPH%2F20230801%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Signature=85e23e01d3ff6141b4c4af1dbfb75b4c6d4338b234a7c1f6a332d425882dc93e"},
"start": 0,
"length": 3,
"transition": {
"in": "fade"
}
},
{
"asset": {
"type": "video",
"src": "https://iamvideo-temp-assets.s3-us-west-1.amazonaws.com/3030/Cinequest%20Party.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230801T153714Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86399&X-Amz-Credential=AKIAQCAIMKFFMJCQRLPH%2F20230801%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Signature=85e23e01d3ff6141b4c4af1dbfb75b4c6d4338b234a7c1f6a332d425882dc93e"
},
"start": 3,
"length": 3
},
In the final json video it is showing image zoomed in
Try this:
{
"asset": {
"type": "image",
"src": "https://iamvideo-temp-assets.s3-us-west-1.amazonaws.com/3030/Cinequest%20Party.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230801T153714Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86399&X-Amz-Credential=AKIAQCAIMKFFMJCQRLPH%2F20230801%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Signature=85e23e01d3ff6141b4c4af1dbfb75b4c6d4338b234a7c1f6a332d425882dc93e"
},
"start": 0,
"length": 3,
"fit": "none",
"transition": {
"in": "fade"
}
},
{
"asset": {
"type": "image",
"src": "https://iamvideo-temp-assets.s3-us-west-1.amazonaws.com/3030/Cinequest%20Party.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230801T153714Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86399&X-Amz-Credential=AKIAQCAIMKFFMJCQRLPH%2F20230801%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Signature=85e23e01d3ff6141b4c4af1dbfb75b4c6d4338b234a7c1f6a332d425882dc93e"
},
"start": 3,
"length": 3,
"fit": "none"
}
Notice that I have included a parameter “fit” with value “none”. This will ensure the original image dimensions are used and the image is not resized. The default fit is “crop” which stretches images an videos to fill the screen.
I also changed the type from video to image but in this case it makes no real difference.
More info on fit in the clip properties API reference here: Shotstack v1 API Reference Documentation