Depending on the ls you use (and any aliases which may be present), I
recommend the following change:
for x in `/bin/ls -A1`; do mogrify -resize 33% $x; echo Done converting $x;
done;
/bin/ls invokes the binary itself, independent of aliases. The -1 shows you
ONLY the filenames in a single-column list, and the -A refers to all files
except the inherent . and .. entries.
Garrett
----- Original Message -----
From: "Don Calfa" <
tvat3000@netscape.net>
To: <
plug-discuss@lists.plug.phoenix.az.us>
Sent: Friday, April 25, 2003 2:03 PM
Subject: Re: ImageMagick help
> Thanks for all your help.
>
> derek@gnue.org wrote:
>
> >I use
> >
> >for x in `ls`; do mogrify -resize 33% $x; echo Done converting $x; done;
> >
> >I added the Done converting $x because I get sick of not knowing the
> >status of how far things were done.
> >
> >
> >On Thu, 2003-04-24 at 11:04, Don Calfa wrote:
> >
> >
> >>I'm trying to setup a script that resizes images. It's for a
> >>non-computer savvy type of person. The goal is that they:
> >>
> >>1. Insert the memory card from their camera in the reader
> >>2. Click a button that removes the files from the card and places them
> >>on the hard drive
> >>3. Resizes the images and places those in a different location for
> >>e-mail purposes.
> >>
> >>I need the original filename to be exactly the same as the converted
> >>filename. The only variable I've been able to find is %nnd where nn is
> >>number of decimal places and d is the count of the images.
> >>
> >>convert -size 640x480 *.jpg -resize 640x480 output\%02d.jpg
> >>
> >>renames all files to 00.jpg; 01.jpg, 02.jpg, etc...
> >>
> >>Google hasn't produced the variable either nor has the imagemagick site.
> >> Any help appreciated.
> >>
> >>
> >>---------------------------------------------------
> >>PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> >>To subscribe, unsubscribe, or to change you mail settings:
> >>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> >>
> >>
>
> --
> Your favorite stores, helpful shopping tools and great gift ideas.
> Experience the convenience of buying online with Shop@Netscape!
> http://shopnow.netscape.com/
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss