[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Batch Resize, how to?



On Saturday 02 July 2005 04:51 pm, you wrote:
> Benedek Frank <linux@celifornia.com> writes:
> > I am trying to organize my pictures, and I am looking for a batch
> > resizing program for my laptop. I was googling for a while, but I didnt
> > find anything, only one program for GIMP, but that didnt work. Any good
> > plugins for GIMP? Or command line tool?
>
> 'convert' from the imagemagick package does the job.
>
> Its a console programm, so you can easy use it for scripts.
>
> It works like this:
>
> convert -resize 800x600 originalpic_name resizedpic_name
>
> e.g. resizes the originalpic to 800x600 and stores the resized pic in
> the new file resizedpic_name.
>
> HTH,
Thanks

I have written a script that seems to do the job:

for img in `ls *.jpg`
do
  convert -resize 800x600 $img resized-$img
done

This takes all images and reduces them to 800-600 and names it resized-$.jpg. 

Thanks for the hint

Benedek Frank



Reply to: