Processing the images#
Now that we have opened our files, we can (finally!) do something with them.
In this case, we will apply a gaussian blur to all of the files, with a given sigma.
Add this file to your script. Think about where in the script this should go, and why.
Macro: Open, Save and Close Files
Now if you run this script it will open the images, and once each file is opened, apply a gaussian blur to the image.
However, rather than just applying this to every image and keeping them all open, let's instead save each file after we apply a gaussian blur, and then close it before we open the next in line.