On Thursday 26 August 2004 07:38, Lanman wrote:
> Hoyt Bailey wrote:
> > On Thursday 26 August 2004 06:50, Lanman wrote:
> >>Does anyone know of a way to resize a batch of icons all at once?
> >>I've been looking at Imagemagick, but can't get the command-line to
> >>work properly. There seems to be some options or info missing from
> >>the Man-Page for it, and I can't find any other info on the correct
> >>procedure.
> >>
> >>I have several folders of images which need to be resized into
> >>several different sizes, so being able to resize recursively
> >> through several folders and sub-folders would be handy as well.
> >>
> >>TIA,
> >>
> >>Lanman
> >
> > If there is some way you can simply identify the size 'sed'
> > probably could do it.
>
> Hoyt, I know the exact sizes and there are 4 of them. All these
> images each need to be resized to the four fixed sizes. Can you give
> me some info re - sed? I need to be able to input a command for
> multiple images at one time, and hopefully so have sed send the
> output to 4 different folders - 1 for each of the sizes.
>
> TIA
>
> Lanman
I'm not sure how icons are sized.  If there is a 'size:40' then you can 
convert that to any size you want by finding /size: 40/ and replacing 
that with /size: 50/ any time it occurs in as many files as exist say 
you have Chapter01 thru Chapter50, then every <regexp> can be changed 
to <newregexp> by 'sed'.  Its been a number of years since I have used 
sed and I dont remember the syntax but it goes something like this:
cat /<dirpath>/* | sed /size: 40/r/size: 50/ tee /<newdirpath>
sed is a stream editor and cat is necessary to stream the data.  Do not 
use the syntax I have shown more may be required or different may be 
required I just dont remember.  See man sed or info sed.
-- 
Regards:
Hoyt
Registered Linux User # 363264
http://counter.li.org

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to