ImageMagick - How do you convert files recursively in the shell?

927 Views Asked by At

I have a folder tree of several subfolders within subfolders of BMP files I'd like to convert to JPG format, but I can't figure out a working command to get mogrify/imagemagick to go through every folder recursively.

Any solutions?

1

There are 1 best solutions below

4
Michal On

Easiest way to pass list of files would be probably by using backticks and recursive find command:

mogrify -format jpg `find . -name '*.bmp'`