You are here


GIMP scripting in Python.

Cubemap Layers Generator

GIMP DDS plug-in needed to save to cubemap DDS format:

This script will automatically create, crop, reposition and rename all layers needed to save a cubemap with the GIMP DDS plug-in from a regular skybox image of choice.

How to use

Create a new file in the GIMP (just about any parameters will do). You'll find the script under Filters > Generic. Everything else is pretty straight forward from there.


Luminance tools

This script contains a few simple tools related to luminance.

It installs three separate scripts under Filters/Luminance. These are:

Extract - this extracts a layer's luminance to a separate layer, and leaves only the chroma information to the other layer. You can get the original layer back by merging the layers.

Remove - this removes luminance information from a layer, ie. sets the luminance to 50% on the whole layer. Basically it makes the layer into a chroma layer.

Luminosity Masks

Tony Kuyper describes a great way to manage tones in Photoshop that he calls "Luminosity Masks." See for his thorough description of how they work and what they can do. I have implemented and extended them in this Gimp plugin.

Put in your Gimp plugins directory. Usually this is ~/.gimp-2.x/plug-ins. Restart Gimp.


Post Rotate Crop

The attached zip file now includes a Python version of the Post Rotate Crop script. This runs very much faster than the Script-Fu version (which is also included in the zip file for those who don't have Python installed).

Whilst originally intended to be used following a rotation the script can also be used following
other transformations, such as perspective, scale and shear. The transparent areas added to the
image by the transformation are removed to leave an opaque rectangle.

The script provides options that determine how the resulting rectangle should be maximized.

Selection bevel

New version of selection bevel released. Bugs of the last version have been fixed, and additionally a new feature added: now you can adjust the width and height of the bevel independently, creating neat effects where the bevel is thinner on some edges, or uneven.

Render texture

This script automates creating simple textures, using solid noise/emboss. Easily create paper-like textures or more coarse gravel-like ones.

The texture appears on it's own layer. You can adjust opacity, layer mode, and various other settings beforehand, and you can also see a preview of how it will look.

The plugin is coded for 2.6. I haven't tried it on 2.7.
Comments & feedback are welcome.

When you download the script, rename it so that you change the extension from ".py.txt" to ".py", otherwise it will not work.

Update history:

Version 1.3:

Polka Dot effect

This plug-in turns selected layer into a Polka Dot image.
Inspired by this tutorial:

More example on (Download-->Plugin Gimp)

Transpose all tiles from a tile-based layer

Suppose the current layer has a tile-based image (e.g. the tileset for a game). This script will transpose all tiles, so that the tile at the position (1,0) will end at (0,1).

Very useful if you have your sprite sheet as a tall strip of frames (one on top of the other), but you need it as a horizontal strip (with frames side-by-side, as required by Game Maker). With this plugin, you can transpose the frames to convert from one format to another.

Split layer into tiles

Split a layer into many layers, one for each tile. This is useful for editing tile-based images for some games and applications.

If somehow I forget to update the script in this page, check also:

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.


Subscribe to RSS - Python