Batch run mogrify including subdirectories
Solution 1:
It looks like mogrify from ImageMagick 6.9.9.19 writes the result in the same directory as the input file, so you can use this command:
find . -name '*.NEF' -exec mogrify -format jpg {} +
Explanation:
-name '*.NEF'
finds all *.NEF files; use-iname
if you want the search to be case insensitive.-exec ... {} +
executes the command on all the matching files. An alternative would be to combine find with xargs.