Command-line: convert
Use the following command to resize every .jpg file to 200 pixel width, keeping the aspect ratio:
$ convert '*.jpg[200x]' resized%03d.png
To shrink: '*.jpg[300x<]' or to enlarge: '*.jpg[300x>]'
With GUI: Phatch
Source: askubuntu.com