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.

-- 
Stephen R. Laniel
[EMAIL PROTECTED]
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key

Attachment: signature.asc
Description: Digital signature

Reply via email to