resize images to 640x480

J

Jack.Hambabo

Hi,

I've got several photo which I want to import into movieXone. When
doing it they get deformed.
In order to prevent this, I want to resize images to max width 640 -
max height 480 while keeping the aspect ratio (irfanview bath does that
for me)
And then I want to add black borders on both sides to the images to get
a 640x480.
What I can batch-do with irfanview:
1st step: resize images to max width 640, max height 480
2nd step: add black border - 640 pixel to the right, 480 pixel to the
left
3rd step: crop the most upper left 640x480 pixel.
(1 and 2 can be done in one step)

I'd however love to have the black border symmetrical to the left and
to the right. (or at the bottom and the top)

So what I want:
I want a 640x480 black canvas and on it in the middle I want the
picture undistorted and as large as possible.
And this should be done automatically.

Can this be done with IrfanView?
Is there another freeware program to do that?

Thanks alot,
Jack

PS: Or does anyone know how to import a picture into movieXone 4.0 in
either video stream A or B (video 1[the effects streams] can import
pictures okay, but I need it for other moving text, images and videos,
and I can have just one at a time) with it keeping the aspect ratio?
 
T

Toke Eskildsen

wrote:
I want a 640x480 black canvas and on it in the middle I want the
picture undistorted and as large as possible.

With ImageMagick:
convert in.png -resize 640x480 -bordercolor #000 -border 640
-gravity center -crop 640x480+0x0 out.png

For at batch, create a .bat file with the content (single line):
FOR %%A IN (*.jpg) DO convert %%A -resize 640x480 -bordercolor #000
-border 640 -gravity center -crop 640x480+0x0 out_%%A
and run it in the directory with the images.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top