tacman1123
28th June 2008, 04:52
I know there's a simple answer to this, but can't seem to find it amid the Resize and Zoom options (lots to choose from!)
I want to show a simple slideshow, and am having trouble because the images are different sizes. I don't really want to use one of the Resize's, because the picture gets distorted. Basically I want to center the picture and add black bars on the top and bottom or left and right.
Global W = 720
Global H = 480
Global F = Framerate(AssumeFPS(BlankClip(),"ntsc_video"))
Global R = 48000
Global Blank = BlankClip(1, W, H, "YV12", F.Loop(1))
video = Blank
video += ImageSource("pic1.jpg") # landscape
video += ImageSource("pic1.jpg") # portrait
video += ImageSource("pic3.jpg")
video
Obviously, if the images are a different size, there needs to be some sort of Resize call that maintains the current aspect ratio.
Much thanks,
Tac
PS Can't remember if += works, or if those lines need to read video = video + ImageSource()
I want to show a simple slideshow, and am having trouble because the images are different sizes. I don't really want to use one of the Resize's, because the picture gets distorted. Basically I want to center the picture and add black bars on the top and bottom or left and right.
Global W = 720
Global H = 480
Global F = Framerate(AssumeFPS(BlankClip(),"ntsc_video"))
Global R = 48000
Global Blank = BlankClip(1, W, H, "YV12", F.Loop(1))
video = Blank
video += ImageSource("pic1.jpg") # landscape
video += ImageSource("pic1.jpg") # portrait
video += ImageSource("pic3.jpg")
video
Obviously, if the images are a different size, there needs to be some sort of Resize call that maintains the current aspect ratio.
Much thanks,
Tac
PS Can't remember if += works, or if those lines need to read video = video + ImageSource()