> 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.
--
Toke Eskildsen - http://ekot.dk/