[olug] Re: picture conversion

Ted Milker tmilker at radiks.net
Wed Sep 20 22:15:53 UTC 2000


> Rado Bonk wrote:
> Hi List,
> I need to convert a lot *.rgb images into *.gif images. I know that Image
> Magick can do the job. But I am having problems to convert more that one
> image at the same time. What is the correct syntax to convert all of them
> at one time.

Just type(in bash):

for i in `ls *.rgb`; do
convert $i `basename $i .rgb`.gif
done

That will convert all of the .rgb files in the current directory
into .gif.

Ted

---------------------------------------------------------------------
To unsubscribe, e-mail: olug-unsubscribe at bstc.net
For additional commands, e-mail: olug-help at bstc.net



More information about the OLUG mailing list