I have a folder of images over 4MB - let\'s call this folder dsc_big/. I\'d like to use convert -define jpeg:extent=2MB to convert them to
4MB
dsc_big/
convert -define jpeg:extent=2MB
Here's a solution without using for loops on the console
convert *.jpeg -define jpeg:extent=2MB -set filename:f '../dsc_small/%t_small.%e' +adjoin '%[filename:f]'