Mailinglist Archive: opensuse (3337 mails)

< Previous Next >
Re: [SLE] image resizing
  • From: Carl William Spitzer IV <cwsiv@xxxxxxxxxxxxx>
  • Date: Fri, 28 Apr 2006 06:58:59 -0700
  • Message-id: <1146232740.5282.4.camel@xxxxxxxxxx>
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

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.
--
___ _ _ _ ____ _ _ _
| | | | [__ | | |
|___ |_|_| ___] | \/


< Previous Next >
Follow Ups