Bulk Image resize in Ubuntu
Bulk Image resize in Linux
If you’re just doing a couple of images, most image editors in Ubuntu (Gimp, F-Spot, etc) will let you do a basic resize.
If you want to edit tens, hundreds or thousands of images, I prefer Phatch. Phatch is a GUI-based batch photo editor that will let you perform a whole load of transformations on images.
sudo apt-get install phatch
ImageMagick is good but it’s a bit tedious if you don’t know the setting names for things. You can very quickly learn Phatch by clicking around.
You can install ImageMagick using this command
sudo apt-get install imagemagick
It contains a number of useful command line tools for this very purpose.
Here’s a simple commands explaining how to batch resize images
mogrify -resize 50% *png # keep image aspect ratio
mogrify -resize 320x240 *png # keep image aspect ratio
mogrify -resize 320x240! *png # don't keep image aspect ratio
mogrify -resize x240 *png # don't keep image aspect ratio
mogrify -resize 320x *png # don't keep image aspect ratio