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:
You can see many spots of dust in the original image.
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.
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.
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.
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.
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.
Also I provide following language translation files.
Català
Deutsch
Español
français
Italiano
Japanese
Korean
Magyar
Nederlands
Polski
Translation files are “locale” directory under this plug-in’s directory.
Even if your language is not included this list, you can easily make your language locale file. Throw “defaut.txt” in locale directory to online AI translation service, and save the result as [your language code].txt in locale directory. For example, you would like to add Vietnamese translation, save the result as vi.txt in locale directory. You can find the list of language code in [Edit] > [Preferences] > [Interface]>[Language].
And if you use Mac OS, please set your language explicitly in preferences and do not use system language setting. Otherwise my plug-in will be displayed in English.