On Sun, Jan 15, 2006 at 04:05:42PM +1100, Star King of the Grape Trees wrote:
I can't be bothered to consult the man page, but it will be something like:
for $f in `ls *.bmp`; do convert $f --to-jpeg; done
Because I like to add little bits of efficiency where
necessary, I'll note that the `ls *.bmp` above is more
complicated than what you need. What you mean is
"for f in *.bmp".
Also, ImageMagick is nice, in that it does a lot of
conversions automatically just by extension. So
convert -resize 200x200 filename.{bmp,jpg}
, which combines a bashism with ImageMagick, will expand at
the shell into
convert -resize 200x200 filename.bmp filename.jpg
and ImageMagick will then automatically convert the file
from BMP to JPEG.