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. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998