From DPWiki
Jump to navigation Jump to search

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 comes available with every Gimp installation.

For documentation, see Script-Fu and plug-ins for The GIMP.


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

  1. Locate the script directory:
    • Linux: ~/.gimp-2.4/plug-ins/
    • Windows: C:\Program Files\Gimp-2.0\share\gimp\2.0\scripts
  2. 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.
  3. Linux
    1. Give the script execution permissions, by doing chmod +x yourscriptfile
    2. Testing the script is easiest if you run gimp from the command line instead of executing from the menu system, by doing gimp
  4. 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

Python-fu scripts