Tony Placilla aplacil1 at jhuadig.admin.jhu.edu
Tue Jul 15 20:24:54 UTC 2008

>>> On Tue, Jul 15, 2008 at  3:57 PM, in message <487D013D.9070202 at hogranch.com>,
John R Pierce <pierce at hogranch.com> wrote: 
> Chris Geldenhuis wrote:
>> Hi All,
>> I have been Googling my head off but cannot find a method to stream 
>> edit all the images in a directory and to resize them. I have a large 
>> number of images of up to 3GB in size that I want to put in albums on 
>> a website, but before I do this I need to resize them to a more 
>> realistic configuration.
>> I know how to do this manually with the GIMP but it becomes tedious 
>> for more than a few images.
> imagemagick can do this, its a command line batch image editor.  its a 
> little tricky to figure out.   I note its in the base Centos5 repository.
> docs on http://www.imagemagick.org/script/index.php

for example:

mogrify -size 480x320 *.jpg

will convert all the jpgs to 480x320

mogrify -size 480x320> *.jpg

will resize everything bigger than 480x320 down & leave the smaller stuff alone.

More information about the CentOS mailing list