You are here

Python

GIMP scripting in Python.

Simple two colors border

This script produces a two colors border. You can choose the border width in % of the smallest image dimension, and the inner border width as a % of the whole border (and the colors, of course).
This can seem a bit complicated, but if you have pictures of different sizes and want a same-looking border, % will get you there.

Just remove .txt from the filename after downloading the script (don't know why it was added..)

Map Style

Users Guide
___________

What this plugin does:

Transfers artistic style from one image to another. Often the source is an artistic image and the target is a realistic, photo image. But you can also transfer between artistic images or between realistic images.

An artist might say this plugin "renders in the media and style from another image." A computer user might say it "renders in the theme of another image."

Transferring style means transferring small scale features (color and texture) to an image while retaining large scale features (objects.)

Render Texture

This plugin creates a new image having texture synthesized from the selection.

It hides several steps to set up and use the resynthesizer. It requires the separate resynthesizer plug-in.

See the Resynthesizer author Paul Harrison's website, about using the resynthesizer to generate textures.

The effect for users:
Similar to "Fill resynthesized pattern" except:
- here the arguments are reversed: you select a texture and create a new image
instead of selecting an area and choosing a pattern.
- here the result is less random (since Fill resynthesized adds noise.)

Adaptive saturation curve for LabCurves

Hi folks,

there is an update for LabCurves to have a curve for adaptive (or absolute) saturation adjustments. It is an external 16 bit program which can be semmlessly used from gimp with a python script.

More information here: http://www.mm-log.com/blog/2010-07-09/adaptive-saturation-curve-labcurves

greets mike

EZ Perspective

Turn this:

original image, taken by camera tilted up

…into this:

perspective corrected image, rectilinear, correct proportions

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

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

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

Paper Saver

The script can be used for creating a papersaver when doing scrapbooking. Where many small images of different sizes are to be printed.

This script lets the user pick a number of images. Then tries to packs the images on as few pages as possible, respecting their print size.

The algorithm used is not optimal, but does a fairly good job.

Pages

Subscribe to RSS - Python