This example shows how to automatically resize images to fit the output format in Video Puppet.
Check out the outcome in result.mp4
.
Upload the script
directory to a Video Puppet project. The main script file is source.md
.
When adding an image to a scene, Video Puppet will automatically resize it to fit the target video format. You can control resizing by adding an option to the square brackets when setting the video. For example, to shrink and pad a larger image to fit the smaller target size, use the contain
option:
![contain](image.png)
Without additional options, Video Puppet will crop a large image around the center to cover the video size. If you want to show a different part of the image, specify the cropping position. For example, the following scene takes the left part of an image instead of the center:
![left](file.png)
For available sizing and position options, check out Scene Image documentation.