Code: Select all
convert -brightness-contrast 15x15 abc.jpg abc.jpg
This changes the image abc.jpg and replaces it with the same image
1. I want to go through a directory and apply the change to all files that are .jpg
2. I want to recursively go through sub directories and do the same
I'm not sure where to begin with the coding and how to store the matching names in an array and then execute the command for all names in the array
I'm guessing that the above has been done many times before

Any help would be greatly appreciated
Thanks
OM