Description
This script is intended to be used to fix photos taken with a digital camera that has a hot pixel, dead pixel or stuck pixel.
Basically, there can be a problem with the digital sensor that causes one particular spot in all of your photos to show up in a specific colour (red and blue are popular).
Since this type of problem tends to affect large numbers of photos, this script comes with the capability to run it on a folder full of files at once.
(Note, if your camera is under warranty, you should first try to get it fixed by the manufacturer.)
You can find the script at the GIMP Plug-In Registry. After you install the script (download and place in
your script folder), refresh your scripts ([Menu] –> ).
You will find this script in the menus
as described below. (If you have trouble, revisit the main GIMP Corner page for more information about the GIMP and using plug-ins).
Using the Script
Running the Script
There are three ways to run this script:
- 1) Current file
- Open the image, then choose:
[Menu] –>
- 2) Individual, selected file (non-interactive)
- From the main toolbox menu choose:
[Menu] –>
- 3) Apply to Folder (non-interactive)
- From the main toolbox menu choose:
[Menu] –>
Input and Output Files
The script will run on any files that can open in RGB mode. With the batch run, you can specify an alternate extension (e.g., jpeg, ppm).
Output will always be in a JPEG file though, with the .jpg extension.
Specifying Folder names
When running on a batch of files in a folder, you are limited to basic folder names as per these examples:
Running the Script in Batch Mode (Console and Command Line)
Before running the script in batch mode, you can run it interactively to test and confirm what combination of numbers work for your particular "hot dot." Once you have determined these numbers, you can then run the script on one or more files or folders.
Script Parameters
To confirm the script parameters (arguments), you can check them from the GIMP's Procedure Browser. You can open this either by
Type in part of the name of the procedure you are looking for (here we used folder), as per the example at right.
Batch Examples for Windows and Linux
Here are some examples of how to run the script in batch mode on a folder:
- Windows:
- Script-fu console:
(script-fu-Darla-batch-folder-HotDot "C:/photos/testing" "jpg" 2 2298 516 12 9 -5 -6 3)
Command line:
Include same parameters as from Script-fu Console, but escape the quotes within the command with a backslash (\):
"C:\Program Files\GIMP-2.0\bin\gimp-2.4.exe" -d -f -i ^
-b "(script-fu-Darla-batch-folder-HotDot \"C:/photos/testing\" \"jpg\" 2 2298 516 12 9 -5 -6 3)" ^
-b "(gimp-quit 0)"
You can enter this command on one line without the continuation character (^): Full command on one line (for Windows)
- Linux (bash):
- Script-fu console:
(script-fu-Darla-batch-folder-HotDot "/home/joe/testing" "jpg" 2 2298 516 12 9 -5 -6 3)
Command line:
Include same parameters as from Script-fu Console, but escape the quotes within the command with a backslash (\):
gimp -d -f -i \
-b "(script-fu-Darla-batch-folder-HotDot \"/home/joe/testing\" \"jpg\" 2 2298 516 12 9 -5 -6 3)" \
-b "(gimp-quit 0)"
You can enter this command on one line without the continuation character (\): Full command on one line (for Linux)
If you choose the FileSave option to have the HotDot script save your files in a subfolder, you must make sure this exists before you run the script.
(i.e., make sure there is a subfolder named "hotdot" below the foldername you are specifying as the "Folder Path."
Additional Tips & Information
If you are dealing with files in raw image format, you may want to check out dcraw and directions for bad pixel mapping.