Python Plug-in: Spots removal mask maker for GIMP3

I have made new python plug-in for GIMP3, named Spots removal mask maker. Last year, I posted an article named “How to fix many dust and scratch spots on film-scanned images at once with GIMP”.

I think the idea is not bad, however the editing process is a little complicated and is difficult to put into practice.

To make the process easier, I made this script. With it, you can skip complicated layer manipulation process. This is still a prototype version.

This script is useful for spot removal in relatively simple contexts, such as the sky or out-of-focus areas.

The steps are explained below:

  1. You can see many spots of dust in the original image.

  2. If you install this script, you can run it from [Layer] in menu.

  3. First, you select the channel image from which you make the spots removal mask. Choose the channel where scratches and dust are most clearly visible.

  1. Next, apply Gaussian blur to the selected channel image until the spots are no longer visible.

  2. If you check [View upper layer], you can view the mask image. You can also save the mask image as a separate TIFF file, which will be saved in the same directory as the original image.

  3. If you click OK, the script duplicates the original image layer and add the mask. After the process executed, the image will be “Show Layer masks” mode, and you can see the mask image.

  4. Paint the unnecessary area of the mask with black.

  1. Adjust the contrast of the mask with level tool to effectively remove the spots on the image. You may also apply Gaussian blur to the mask itself as needed.

  2. Editing is completed. Spots are removed effectively.

To make this plug-in, I used some of the code from “Frequency separation plug-in” made by @chuckhenrich. Many thanks to the author and anyone who offered advice.

Download Link

3 Likes

Very cool! Looking forward to trying it out…

In Mac OS, the dialogs are not displayed on top, so please do not use GIMP in full screen mode, they will be hide. I cannot find the way to display them on top in Mac OS, yet.

I have a little modified the code of this program. The download link is same.