PDA

View Full Version : images to slide show


unplug
11th May 2005, 15:52
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("f01.jpg",0,25,25,true)
b=imagereader("f02.jpg",0,25,25,true)
a+b

Anyone can help?

vion11
11th May 2005, 17:30
There are two or more solutions:

Without border:
a=imagereader("f01.jpg",0,25,25,true).lanczosresize(vcdWidth,vcdHeight)
b=imagereader("f02.jpg",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

unplug
12th May 2005, 11:19
What resize filter can make the resized result in scale? If I use lanczosresize, the result will be flatten.

vion11
12th May 2005, 12:38
You can write functions to get more possibilities.
Try this script and play with number 1.8

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.

tin3tin
13th May 2005, 00:54
Btw. have you looked in this thread:

slideshow code (http://forum.doom9.org/showthread.php?threadid=84396&highlight=tin2tin)

Here I have collected a couple of scripts in order to create slideshows(you should change the 720x576 to the vcd size).