|
|
I have several images and I want to make them as a slide show (VCD). However, the size of the images is different. It doesn't work if I apply the script below directly.
a=imagereader(quot;f01.jpgquot;,0,25,25,true)
b=imagereader(quot;f02.jpgquot;,0,25,25,true)
a+b
Anyone can help?
There are two or more solutions:
Without border:
a=imagereader(quot;f01.jpgquot;,0,25,25,true).lanczosresize(vcdWidth,vcdHeight)
b=imagereader(quot;f02.jpgquot;,0,25,25,true).lanczosresize(vcdWidth,vcdHeight)
a+b
With border:
I would create a blank clip as long as the amount of pics and
layer them centered on the blank. You can access width and height
of pics and calculate proper place.
And there is a plugin able to stretch the middle more
than near edges (is it trbarrys warpresize? - not sure about)
Good luck
What resize filter can make the resized result in scale? If I use lanczosresize, the result will be flatten.
You can write functions to get more possibilities.
Try this script and play with number 1.8
Code:
Function ScaleResize( clip c, float Scale)
{ return LanczosResize(c, int(c.Width * Scale), int(c.Height * Scale))}
myClip=Version()
ScaleResize(myClip, 1.8)
This is only a example, if you are in quality or speed
other solutions are suggested.
Btw. have you looked in this thread:
slideshow code
Here I have collected a couple of scripts in order to create slideshows(you should change the 720x576 to the vcd size). |
|