|ImageMagick ( http://www.imagemagick.org/ )includes an excellent converter program called convert.exe. You execute it from the command line like this:|
convert file.jpg file.bmp
It will convert to/from many formats.
Sadly, I've found that it doesn't correctly convert some peculiar JPG images, so I'm still looking for alternatives however it may do exactly what you need.