You are here

python

Spirograph Curves

This is a simple python script, which creates spirograph type curves. There are endless varieties which can be generated. There is a page on my site with some documentation:

http://www.andyshelley.co.uk/gimpfarris/index.php

HDR (High Dynamic Range) with tone mapping

This script helps you making a HDR image by three different exposures.
This script blends three different exposures of the same scene, it combines them to get the best parts of the images.

This procedure works best if you:

Make shortcut

A plugin that makes shortcuts, in a Shortcuts menu, to other plugins.

Install it in your local plugin directory. You can run it to see what it would do, and cancel it, without creating any shortcuts. If you do create shortcuts, it will create them in your local plugin directory. You can later manually delete the shortcut plugins.

This is a prototype that I'm posting for comment. It works but it could be improved. I would be glad to start a community project.

A future version might:
- let you enter parameters for the target plugin (make a "preset")

Python plugin examples templates using gimpfu, for programmers

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.)

Facial Symmetry

Most peoples faces are not symmetrical. This python plugin, allows you to easily create mirror images of a persons face. Just make a rectangular selection of the portion of the image you are interested in, and the plugin will do the rest. An example can be found on my website: http://www.andyshelley.co.uk/gimpsymmetry/index.php

Inspect

A prototype, for programmers, not for artists or users.

From the README file:

A Gimp plugin that lets plugin programmers view documentation for PDB procedures, GIMP-Python modules, plugins and modules written in Python, and image data. The documentation is live, generated from the code itself and from the current state of GIMP and the PDB.

Installation:

Copy plugin-inspect.py and the inspector directory to your own, local plugin directory. Make plugin-inspect.py executable. See a comment in plugin-inspect.py for Linux commands.

Version:

Smart Gradient

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

Straighten & Crop by Bert Hinz

This plugin is by Bert Hinz. As his web site seems to be down, I'm archiving it here. It says it's "free software" (looks like part of the GPL Licence) so I'm assuming this is OK. Description from the script:

Demonstrate built-in GUI widgets for Gimp plugins written in Python

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.

PAL and PAL VHS filters

A couple of Python-Fu filters for making images look like they have been PAL encoded or retrieved from a VHS tape. The plug-ins will scale any image they are fed to 720 x 576 - this is because that's the size PAL images are.

PAL images have non-square pixels - if you want to correct the aspect ratio afterwards you can scale them to 788 x 576.

Pages

Subscribe to RSS - python