This file contains examples, or templates, of registering plugins using gimpfu.register().
This is for GIMP Python programmers, not users.
When installed, this one file puts many (nine) demo plugins into GIMP.
The demo plugins don't do much except make an appearance.
These demonstrate various combinations of:
- where plugins appear (or not) in the menus (or elsewhere) in GIMP
- when the plugin's menu items are enabled (sensitive)
- what parameters a plugin_main() receives
- whether a plugin opens a GUI dialog for user to choose options (set parameters.)
This is a simple gradient plugin for GIMP, written in python. It applies a linear gradient to a rectangular selection, in one of four directions, using the colours of the pixels at the starting edge, and fading to the background colour, over the width, or height of the selection. To try this out, all you need to do is download the script, and store it in the gimp plugins folder, in your home directory. Remember to set the executable flag on the file. An example of use may be found on my site : www.andyshelley.co.uk/gimpgradient/index.php
This plug-in is a demonstration for python programmers of Gimp plug-ins. It displays almost all the built-in GUI widgets for parameters to plugins. It shows what a plug-in dialog can be using what is built into PyGimp. An alternative to using what is built in, is to use a Python GUI library such as pygtk.
Motivation: the documentation seems sparse for PyGimp GUI widgets. This is example code.
It does nothing to Gimp images, it's not for users, just for beginning programmers.
This is a Python plug-in, written initially in Spanish by Mr Javier Pacheco, which from an image creates a standard complete month calendar. It has been translated in English and modified by me to try for more flexibility in the design of a standard calendar. Seven layers (plus an optional one) are added to the image to control the three main elements mostly below it on the page : background, calendar box and month-year info.
The options in the dialog are:
° Separation between the image and the calendar box
° Width of the calendar box relative to the image
The range selection script is a tool for easy and automatic creation of selections and layer masks. The selections or masks include all parts of the image that are situated within a defined range of tonal values, colours, saturation or edges. Selections can be based on one of 16 channels. For detailed instructions and several samples have a look at the attached manual.
With this script is easy to create gradients that they simulate a sunset or a natural landscape. You take a photo panoramic, it selects a thin vertical strip and it rotates it in counter-clockwise direction. You read the maximum width of the image and insert it (width / 2) like number of segments in the dialog box of the plugin.
Examples of images created with the plugin
On the left original photo, to right the gradient.