For the GIMP on Linux, Mac, or Windows
Installing and running the script
Save the script into the gimp script folder. To determine where that is, open gimp and go to (File - Preferences - Folders - Scripts) once you note where the folder is, close gimp and save the script to that folder. Some common locations are:
Linux ~/.gimp-2.0/scripts/
Mac ~/.gimp-2.0/scripts/
Windows C:\Program Files\Gimp-2.0\share\gimp\2.0\scripts\
Once the script is in the folder, run gimp and open the image you need to work on. Use the color picker tool to click on the color fringe. I get the best results by clicking the most colorful portion of the fringe, dark or pale colors don't work as good:
Now that the fringe color has been selected, run the script (Script-Fu | Color | Color Fringe Reducer 5):
You can control the strength of the fringe detection. The default is 50 and should be adequate for most users. But some images may need a finer touch, so use a smaller number like 25:
Once the script finishes, you may need to edit the correction layer if there are details that share the fringe color. For example if you have purple fringe and there is a person wearing a purple shirt, you may have to use the eraser tool and erase the correction on the correction layer so the shirt retains its original color.
Here is a before and after example of the script in action
For Photoshop 6 and above PC/MAC
The action
The Color Fringe Reducer 5.0 action is designed for Photoshop 6 and above PC/MAC. It will help reduce color fringe produced from any camera. Being an action, it runs on PC and Mac platforms.
This action does not run on other versions of Photoshop®, Photoshop Elements®, Paint Shop Pro®, or any other program that I know of.
Click here for the Paint Shop Pro version
Click here for the Gimp version
The action has an Auto Purple Fringe Reducer action that requires no user intervention to run. There is also a manual color fringe action that will allow the user to select the particular color they want to reduce since not all color fringe is of the purple variety.
This animation shows the effect of the Auto Purple Fringe Reducer action:
If you have color fringe that is not of the purple variety, the Manual Color Fringe Reducer action will be able to take care of it. The animation below shows a green fringe on the top of the branches before and after the action is ran on it:
Loading the action
Once you receive the action, save it to a folder on your hard drive you will know where to find it. You can drag the action into the Photoshop® window to load it, or click on the actions pallet menu button and then select "Load Actions..."
When the action is loaded, it will be closed and look similar to this:
Open the folder containing the action
Click on the action you want to run, then click on the play button
Then all you have to do is wait for the action to complete, or follow the instructions when the action pauses.
For Paint Shop Pro 8 and Higher
The script
The Color Fringe Reducer 5.0 script is designed for Paint Shop Pro 8 and up. It will help reduce color fringe produced from any camera.
It does not run on earlier versions of Paint Shop Pro that I know of, and it will not run on Photoshop, Photoshop Elements (1 or 2), or any other program that I know of.
Click here for the Photoshop version
Click here for the GIMP version
The script can be ran non-interactively for full automation of the purple fringe fix. You can also run the script interactively to allow you to select the particular color you want to reduce since not all color fringe is of the purple variety.
This animation shows the effect of the Color Fringe Reducer script ran non-interactively:
If you have color fringe that is not of the purple variety, just run the script interactively (make sure you are zoomed in closely enough to see the fringe clearly), you will have the opportunity to click on the colored fringe to get a custom fix. The animation below shows a green fringe on the top of the branches before and after the script is ran on it:
Loading the script
Once you receive the script, save it to a the "My PSP8 Files\Scripts-Restricted" folder on your hard drive. Once you run Paint Shop Pro, the script will be available in the script selection box. Once selected, just press the "Run Selected Script" button.