Thursday, March 6, 2008

Batch resize images

Batch means resizing a lot of images typing one command.

First, install tools required to do job:

Under Ubuntu Linux:

sudo apt-get install imagemagick

copy files to prepared (empty) directory:
cp /media/disk/dcim/101_pana/p1010*.jpg . 

do resize of all files:
$ mogrify -geometry 800x600 *    

Look on images; there sizes changed.

No comments: