You can convert images with the 'convert' command from the Image Magick package, though I have no idea if it can handle this .fits format. The manpage should tell you. It only converts one file so you'll need a loop
Code:
for f in *.fits; do
convert $f ${f%.*}.jpg
done