Resizing multiple image files at once

Ronny Haryanto ronnylist at
Sun Jan 15 00:29:45 UTC 2006

On Sunday 15 January 2006 03:17, 'Forum Post, ' wrote:
> Gimp works, but i have to do it picture for picture.
> I have 64 images to go.... i dont like the idea that i have to do 50
> images next week again..... so i am searching for the batch-method.
> I can resize, but not a group of images.

If you have imagemagick installed, you can cook a short bash script utilising 
'mogrify', like so (adjust seasoning to your liking):

for img in *.jpg; do echo $img; mogrify -resize 640x480 $img; done

Run 'mogrify -help' for more options. Other useful program from imagemagick 
that I use quite often is 'convert'.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the ubuntu-users mailing list