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:

12 Responses to “How to install Python plugins under GIMP”

  1. Michael Schumacher says:

    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 says:

    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 says:

    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 says:

    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 says:

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

  6. Rolf says:

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

  7. MissM@rple says:

    @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 says:

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

  9. Dom W says:

    @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 says:

    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 says:

    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 says:

    Never mind, got it!

Leave a Reply