Mailinglist Archive: opensuse (3337 mails)

< Previous Next >
Re: [SLE] image resizing
  • From: Carl William Spitzer IV <cwsiv@xxxxxxxxxxxxx>
  • Date: Sat, 29 Apr 2006 12:37:50 -0700
  • Message-id: <1146339471.9339.0.camel@xxxxxxxxxx>
On Fri, 2006-04-28 at 14:33 -0400, Ken Schneider wrote:
> On Fri, 2006-04-28 at 06:58 -0700, Carl William Spitzer IV wrote:
> > On Sun, 2006-04-23 at 09:18 -0400, Ken Schneider wrote:
> >
> > > >
> > > I ended up using this:
> > >
> > > for I in `ls -1 *.JPG`;do convert -resize 640x480 ${I} ${I};echo ${I};done
> > >
> > > Which worked great, converted about 200 photos in less then a minute.
> > > Didn't care about over writing as the originals are on a CD.
> > >
> > And to avoid overwriting would this work?
> >
> > for I in `ls -1 *.JPG`;do convert -resize 640x480 ${I} ${I}.new;echo
> > ${I}.new;done
>
> Yes.
>
> >
> > Though I am sure there is a fancier perl way to preserve the extention
> > so the name becomes filespec.new.jpg
> >
> > On that I am still studying perl.
>
> Actually a ksh shell provides that easy enough although I haven't used
> it in a while.
>

Please show me the script. I have never tried ksh.
--
___ _ _ _ ____ _ _ _
| | | | [__ | | |
|___ |_|_| ___] | \/


< Previous Next >