GIMP/Scripts
The GIMP has extensions which let users write and run scripts: Script-fu runs scripts written in Scheme, Python-fu runs scripts written in Python.
Script-fu
Script-fu comes available with every Gimp installation.
For documentation, see Script-Fu and plug-ins for The GIMP.
Python-fu
Python-fu requires the installation of Python on your computer. I don't remember what else it requires; I have only been able to install it under Linux (too lazy to try it under Windows, but I know it's possible.)
For documentation, see GIMP Python Documentation
Installing scripts
- Locate the script directory:
- Linux: ~/.gimp-2.4/plug-ins/
- Windows: C:\Program Files\Gimp-2.0\share\gimp\2.0\scripts
- Write the script (or copy it) in a text file in the script directory. One file may include more than one script. File name does not have to match script name.
- Linux
- Give the script execution permissions, by doing chmod +x yourscriptfile
- Testing the script is easiest if you run gimp from the command line instead of executing from the menu system, by doing gimp
- Windows
- Script-Fu filenames must end with .scm
- To run a batch program from the command line (quotes are very important):
"C:\Program Files\Gimp-2.0\bin\gimp-console-2.6.exe" -i -b "(script-name \"string-argument\" 1 2)" -b "(gimp-quit 0)"
List of available scripts
Thank you for constributing your script. Please create a page for your script as GIMP/Scripts/X, where X is the name for your script. Explain what it does, and provide the full code. Remember that by publishing your script here, you are offering it up under a free license.
List it alphabetically below.
Script-fu scripts
- GIMP/Scripts/SplitPage: splits one or more pages based on their selections or guides
- GIMP/Scripts/ScalePage: scales, sets resolution, and unsharp-masks the current page
Python-fu scripts
- GIMP/Scripts/BlankPage: turns whole page to blank
- GIMP/Scripts/CropFlattenSave: crops, flattens, saves
- GIMP/Scripts/HalfSize: resize to half
- GIMP/Scripts/PaperContrast: increase contrast using user's selection indicating 'white paper'