You are here

Python

GIMP scripting in Python.

Sprite tape & de-tape

Based on sprite tape - 0.3, these two scripts are complementary.

sprite-tape converts multiple "frames" (think animation frames) one per layer to an image of an array of "frames" in a single layer with a specified gutter between frames. sprite_tape-0.4 differs from 0.3 in the way that the gutter between frames is created.

Create Color Wheel

This is a python script that creates a new image of a color wheel on a transparent background. I wrote this script so that I could have an image of a color wheel to use as a color selector inside a C++ program. I wanted a color wheel image that was not copyrighted. This script was inspired by KEMPER BARKHURST. He wrote script-fu-kbColorWheel.scm. I converted his script to python and modified it to remove the lines between each hue.

Example:

demo.png

Export as SVG

I have modified 'Export Layers as PNG' script of Chris Mohler to generate a svg file beside exporting pngs. It can also create Inkscape layers.

For installation and other tips please look at 'Export Layers as PNG' page: http://registry.gimp.org/node/18440

Cross-Process (Python version with options)

OK - so I saw this plugin today:
Cross Processing (Xpro) http://registry.gimp.org/node/25007
Which is based on this excellent tutorial by jEsuSdA: http://www.jesusda.com/blog/index.php?id=375

After running through the tutorial, I decided to write another version of the plug-in with a few options.

This plug-in requires Python. If you have the 'Filters->Python-Fu->Console' menu item you are all set. If not, install Python support for GIMP.
The plugin can be found under Filters>Artistic>Cross-Process. Don't forget to make the plugin executable.

Options:

Debanding

Reduces high ISO banding, blue haze and somewhat chroma noise. Intended for images produced by Olympus gear on higher ISO settings, could be useful on images from other companies. It's fast, but alters colors, lightning of the scene in a dodge-burn fashion. New version adds Gaussian blur on Y, Cr & Cb channels, which can be used separately.

When saving script please remove ending '.txt' extension, and make sure script is marked as executable.

Colorize to PNGs

Simple plug-in to colorize the image in all hues (0-360) and save each colorized image in the specified directory.

This plug-in requires the GIMP Python module.

Glossy Stroke 3D

This python plug-in strokes or fills the current selection and creates a 3D glossy effect with a dropped shadow. The color, brush, lighting, and shadow are adjustable through the initial dialog. Use the Filters/Light and Shadow/GlossyStroke 3D menu.

Note: Depending on the color, adjusting the opacity of the "volume" layers can give better results.

It is my first GIMP plugin, so any comment, criticism or improvement is appreciated. The 3D effect parameter could certainly be improved.

12/16/10 - Version 1.2.0
- The light direction is now opposite to the shadow.

Pile's photos effect

New version (probably the last): add "work on copy" option. (gimp_pile_photo_woc.zip)

New version with random Hue Lightness and Saturation. (gimp_pile_photo_hls.zip)

This plug-in allows you to split an image into many small overlapping images.
Filters-->Decor-->Pile's Photos

Line Border 2

A python conversion of my script-fu Line border script (http://registry.gimp.org/node/118). This version uses python-glade dialogs. It allows to create smaller and much clever input dialog and integrate much more functions. On other side, due to missing support of glade dialogs from Gimp, there is not possble to run this script in batch mode.

Current features:

WrapMap

Generates a complex rim around an arbitrary shape from a line of pixels. Get it from SourceForge: http://gimp-wrapmap.sourceforge.net/

Pages

Subscribe to RSS - Python