Make sure ImageMagick is installed. The convert command is part of the ImageMagick installation.

convert -geometry 240×160 filename newfilename

The following will resize several images in a script:

#!/bin/bash
for x in $(ls)
do
convert -geometry 240×160 $x new-$x
done