You are here

Python

GIMP scripting in Python.

Ungroup GroupLayer

Ungroup a GroupLayer, by moving all children to the same level as the parent. Run this on each GroupLayer to flatten the layer tree back into a layer stack.

If somehow I forget to update the script in this page, check also:
https://bitbucket.org/denilsonsa/small_scripts/src/tip/gimp-2.8-plug-ins/

Rotate about two points

Python plugin for rotate the image based on a two points path, more info and download in
http://www.arakne.es/en/dessign/gimp-python-plugin-rotate-image-using-pa...

Find and Replace Text (Layer Names AND Text Layer contents)

Inspired by the following plugin: http://registry.gimp.org/node/12212

Latest version: 0.0

There's some differences with the plugin this was inspired by. Namely, these are the following changes:

  1. Restricting Find/Replace to just the linked layers.
  2. Whether the search and replace actually is a regex.
  3. Find and replace in text layers too. Currently there's no way to preserve the markup, BUT, it can work around layers that have don't have text content, but do have markup content.
  4. Restricting replacements to the first x occurances in a layer's name or in a text layer's body.

Sort Layers

Sort layers in a image or a layer group. Can sort based on layer width, layer height, layer area, layer name, and a regex of the layer name.

[EDIT]: Forgot to put a utility function inside the plugin. >< If you downloaded it earlier, please redownload it now.

Latest Version: 0.1

Export Layers

Export Layers is a GIMP plug-in that exports layers as separate images in almost any file format supported by GIMP and possibly third-party plug-ins.

This plug-in:

  • uses native dialogs for file format export procedures to adjust file format settings
  • uses layer names as filenames for the exported images
  • supports layer groups and optionally treats them as directories
  • can optionally export only layers whose file extension matches specified file format
  • can use file extensions in layer names as file formats
  • can use layers with names in [square brackets] as background layers

Example:

Line Width

Changes thickness of lines in line art. Enlarges visible image, repeatedly blurs, thresholds, and antialiases, then shrinks image down to original size. A dialog prompts for amount of enlargment, number of repeats, speed of line thickness change, and whether to make the line thicker or thinner. As of v. 1.5 the result is put into a new layer, leaving the old image untouched.

Keeping the color tools settings under control

The color tools (Levels, Curves, Threshold...) memorize all settings used. Over time these accumulate, slowing down tool startup, and making it more difficult to reach the explicitly saved settings, which appear at the bottom of the list.

The settings-cleaner script will run automatically at each Gimp startup and do some housekeeping on these files, directed by a short configuration file, keeping at most a specified number of settings not older than a specified number of days. Settings that have been explicitly saved with a name are of course left in.

Insane Bump

This is a normal map generator from a single image, originally created by omaremad. Load a single layer picture, then choose filters/map/insanebump..., tweak the details, then hit OK. The normal/height/ambiend/specular maps for the picture will be created within the folder where the original picture resides.

The script produces different files within the original image's directory:
the _n is the normal map,
the _s is the specular,
the _d is the diffusion (just the color)
the _a is the ambiend occlusion
the _h is the displacement (or height map)

webSplit photoshop sector tool like new version

Photoshop sector like script for slice the image for web, new options added, select de image format and html source code for each sector. More info in http://www.arakne.es/en/dessign/gimp-websplit-new-version/
Versión en castellano (spanish version): http://www.arakne.es/diseno/gimp-websplit-nueva-version/

webSplit updated

Fixed a bug on the directory separator, the ruling only affected use linux, you can download the corrected version from this link:
http://www.arakne.es/en/dessign/gimp-websplit-fixed-bug-in-linux/

Pages

Subscribe to RSS - Python