How to install Python plugins under GIMP

Please read the comments – some important stuff may have shown up!

Linux – with GUI

Check that the packet gimp-python is installed.

Copy your .py file into the directory .gimp2.4/plug-ins . This is a hidden directory, you don’t see it in the file browser. With Nautilus you can toggle the display of the hidden files with Ctrl-H.

Then make the file executable by right clicking, selecting “Properties” from the menue and activate “Execute” in the permissions tab.

If GIMP was running, restart it.

Linux – with commandline

Check (with synaptic) that the packet gimp-python is installed.

Enter this:

cp myfile.py ~/.gimp2.4/plug-ins
chmod u+x ~/.gimp2.4/plug-ins/myfile.py

If GIMP was running, restart it.

Mac OS

Please write an instruction into the comments – I’ll pull it up to here.

Look through the comments for a solution – but I think there must be a better one.

EDIT by monoceros84: There is a new discussion going on in the forum. Have a look at: http://forum.meetthegimp.org/index.php/topic,227.0

Windows

Copy the files to ~/.gimp2.4/plug-ins

With the following prerequisites:

- PyGTK, PyCairo and PyGobject (all available from the GNOME FTP mirrors as installers) are installed prior to installing GIMP
- ~ is %USERPROFILE%

If GIMP was running, restart it.

Tags:

Comments (16)
  1. Michael Schumacher

    Microsoft Windows
    ——————–

    Copy the files to ~/.gimp2.4/plug-ins

    With the following prerequisites:

    - PyGTK, PyCairo and PyGobject (all available from the GNOME FTP mirrors as installers) are installed prior to installing GIMP
    - ~ is %USERPROFILE%

    Making them executable isn’t necessary, as all files are executable on Microsoft Windows.

  2. MissM@rple

    The same approach used for Linux works fine for me with MacOSX. But I had to create the .gimp2.4/plugins directory in my $HOME first, then I copied the plugin in this directory and made it executable. GIMP couldn’t find the plugin first, I had to provide the path to the just created directory in the preferences (Preferences -> Folders -> Plugins). Now it’s working like a charm. Maybe there is a more convenient way to install plugins for the GIMP on MacOSX, but this works fine for me and I don’t hesitate to fiddle with the terminal ;-)

  3. David Gowers

    MissM@rple: The reason you had to provide the path is because you didn’t use ~/.gimp-2.4/plug-ins/
    , which is the normal path that gimp looks at by default.

  4. Rolf

    Isn’t “~/.gimp-2.4/plug-ins/” and “.gimp2.4/plugins directory in my $HOME” the same under MacOSX? It would be under Unix, AFAIK.

  5. David Gowers

    It wouldn’t be that way under Unix.
    Unix does not magically steal ‘-’s from filenames.

  6. Rolf

    The perils of cut and paste – I overlooked the missing dash and concentrated on ~ and $HOME.

  7. MissM@rple

    @David: Thanks for the hint, but it didn’t make any difference to me. In my home didn’t exist any .gimp[whatsoever]/ directory so I had to create it anyway. The preset paths to have GIMP look for plugins where /<myuserhome/Library/Application Support/Gimp/plug-ins and /tmp/skl/Gimp.app/Contents/Resources/lib/gimp/2.0/plug-ins
    So maybe I should have put my plugins in the first mentioned directory but I feel more convenient to put it that way I mentioned in my first comment.

  8. [lol]2Fast4U

    why synaptic?
    write “with your package manager”
    there is no synaptic in openSUSE. there is YaST :)

  9. Dom W

    @MissM@rple (and any other Mac users)

    - put the python script in the “normal” ‘plug-in’ folder (Home/~/Library/Application Support/Gimp/plug-ins)
    - open the terminal and ‘cd’ your way to that folder
    - make it executable with ‘chmod u+x [scriptname]‘ – default name for this script is zoneadjust.py

    I”m not overly happy with command-line stuff in the terminal, although I’m a little better having played with Xubuntu on a eeePC, but I reckon if I can do it then anyone can …

    To make this a little easier – is there a way of making a script executable without using the terminal?

  10. PhotoComix

    hy
    the python-gimp-pack for windows is now updated and works with last gimp 2.6.1, included the updated version of all the libraries listed by
    Michael Schumacher in his message

    But note

    1 for peculiar architecture (ie X86) may be better download a speciphic version of python 2.5.2 directly to the python side
    2 even if there is a more recent version of python ,2.6 that is not compatible
    you need python 2.5, last for win should be 2.5.2

    link for the pack remain the same :http:/photocomix-resources.deviantartart.com/gallery/

  11. Lazybug

    Hi There,

    I’ve been trying to install plug-ins in Gimp. But I can’t find the Plug-ins folder. I tried Ctrl+H, but that too does not show the hidden folder. Any help?

    Lazybug

  12. Lazybug

    Never mind, got it!

  13. Groggy

    Windows XP user: I’ve downloaded the plugin, installed at C:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins – nothing happened

    Then, I downloaded the script and installed it at: C:\Program Files\GIMP-2.0\share\gimp\2.0\scripts
    Nothing happened.

    So I’ve downloaded the plugin, installed at C:\Documents and Settings\aponstingl\.gimp-2.6\plug-ins – nothing happened.

    Finally, I downloaded the script and installed it at C:\Documents and Settings\aponstingl\.gimp-2.6\scripts.

    Yep, nothing happened.

    any thoughts?

  14. monoceros84

    Have you restarted GIMP?

  15. Groggy

    I’ve restarted several times…

  16. Gimpfreund

    Same problem with StraightenCrop.py in Win XP Home (SP3, fully patched) …
    It won’t run nor appear in any menu.

    >> PyGTK, PyCairo and PyGobject (all available from the GNOME FTP mirrors as installers) are installed prior to installing GIMP

    - “prior to installing GIMP” is a priori impossible. Does this mean that I have to deinstall and reinstall afterwards ??
    Is there no other way ?
    - Seems a lot of work for running a script …

Add your comments: