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.
|
You can use ImageMagick's mogrify tool mogrify -format jpg *.bmp |
|||
|
|
You are likely to have ImageMagick installed on Ubuntu.
update: The
|
||||
|
|
Let me do a little change to salmonmoose answer:
The above works but generates files named "bmp.jpg". You can get .jpg files with this command:
See There are other operations to transform the string in "${i}". "$i" is a shorthand for "${i}". The There is a drawback with
In my answer also the match "${i%bmp}" fails. But there is a solution - you can use the
(I am not very sure of the name part, and I have some doubt in the If you want to join all the images in one .jpg file, you can concatenate them with other filter, as the one mentioned in the first answer. |
||||
|
|
Yes, this will make a bunch of files called filename.bmp.jpg but it'll do the job. |
|||
|
|
