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

Re: [Sheflug] Batch Process Images - Debian



On 11-Oct-07 10:44:37, Richard Ibbotson wrote:
> Hello there
> 
> Was wondering if anyone out there might know how to do this.  Had a 
> look round with Google but I can't find exactly what I want.
> 
> I want to batch process about 100 photographs.  I think I can do that 
> with Gimp but command line might also work ?  I want to reduce 
> pictures that are 3Mb in size down to about 300k or thereabouts so 
> that I can upload them to the internet for a slide show. My 
> workstation is Debian Etch stable.
> 
> Anyone any ideas ?
> -- 
> Richard

JPEG images at 1024x768 tend to range from 200-300KB, so I'd suggest
you perhaps try ImageMagick's 'convert' program, say, on the
lines of

for i in *.jpg ; do
 j=`basename $i jpg`
 convert -geometry 1024x768 $i newpics/$j.1024x768.jpg
done

where you run the script in the directory where the original
photos are (assuming that these are jpg's too), which has a
subdirectory newpics.

This should work OK, since digital camera photos generally
have a 4:3 aspect ratio.

Hoping that helps!
Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding@xxxxxxxxxxxxxxxx>
Fax-to-email: +44 (0)870 094 0861
Date: 11-Oct-07                                       Time: 12:20:08
------------------------------ XFMail ------------------------------

_______________________________________________
        Sheffield Linux User's Group
  http://www.sheflug.org.uk/mailfaq.html
 GNU - The choice of a complete generation