up vote 3 down vote favorite
2
share [g+] share [fb]

Someone sent me a bunch of bmp files and I need them in jpeg. I could convert them one by one using gimp, but I'd rather do it all in one go. I have Ubuntu.

link|improve this question

62% accept rate
feedback

4 Answers

up vote 9 down vote accepted

You can use ImageMagick's mogrify tool

mogrify -format jpg *.bmp
link|improve this answer
Note that this answer works for Windows too, as ImageMagick is available to download for Windows as well. – Gnoupi Oct 24 '09 at 6:57
feedback

You are likely to have ImageMagick installed on Ubuntu.
That can do,

convert filename.bmp filename.jpg


update:

The mogrify (answered by hyperslug and referred by cjm) is also a good option.

Use the mogrify program to resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.
This tool is similiar to convert except that the original image file is overwritten
(unless you change the file suffix with the -format option) with any changes you request.

link|improve this answer
ImageMagick's mogrify command is better than convert for this, because it can be used easily with wildcards. See hyperslug's answer. – cjm Aug 21 '09 at 5:28
feedback

You can achieve that with the help of ImageMagick. In this link are Examples

link|improve this answer
feedback
for i in `ls *.bmp`; do convert $i $i.jpg; done

Yes, this will make a bunch of files called filename.bmp.jpg but it'll do the job.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.