Removing Purple Fringe From Photos

Here’s a small tutorial explaining how to remove the purple fringe that often occurs in high-contrast photos.
It’s Photoshop orientated but may be possible to do the same thing in GIMP even without adjustment layers.