batch for transforming images

Bruce Bales bbales at cox.net
Wed Sep 17 03:00:43 UTC 2008


On Monday 15 September 2008 12:21:03 Peter Klaassen wrote:
> Op Saturday 13 September 2008 21:00:06 schreef David Fletcher:
> > On Saturday 13 Sep 2008, Peter Klaassen wrote:
> > > Is thre a GUI or terminal programm that can resize
> > > all the imgaes in a dir to for instance 800 pixels width
>
> I found aut that digikam can handle these batches very well.
>
>
> --
> Peter
> Registered Linux user # 458207

convert a bunch of pictures titled p8240???.jpg to 800x600 titled 
pp8240???.jpg

for i in p8140*; do convert -sample 800x600 "$i" p$i; done

If you tell it "-sample 800"  without the "x600," it will keep the same form 
factor.  You have to have imagemagick installed.
bruce




More information about the kubuntu-users mailing list