You are here

Python

GIMP scripting in Python.

Export layers (repeatable)

Export all (or only visible) layers as individual image files.
V.0.1 (20120513) - based on the plugin "Export Layers" version 0.5 by Chris Mohler.

Difference:

  • You can perform a task repeatedly, because the dialogue does not close after export finishing
  • You can choose either PNG or JPG file type (other types could be easily added)
  • You can merge the selected layers before exporting
  • You do not need to worry about the file name, because the script can automatically add a number to the filename

SpiroGraph

This a spirograph vector path generator. Two versions are available for Gimp 2.6 and 2.7/2.8.

 Details and Download at the home page.

Create Texture Atlas and Map (export layers and call Sprite Sheet Packer)

This plugin will export the layers in your image as png files, using slightly modified functions from Chris Mohler's Export Layers as PNG plugin, then run Sprite Sheet Packer on them to generate a texture atlas and corresponding map (text file).

Important: Sprite Sheet Packer is needed for this, as well as my Miyagi skin exporter. I have attached it here, but you can also download these binaries from this link.

Automatic backup of open images

Thanks to 'RobA' who discussed this topic here recently, the Python plug-in 'autosave.py' attracted my attention. My work inspired by it is included below.
What I think is new here from the three existing one, that I know. It has a configuration section and the possibility to stop it, so you can restart with a new purpose (configuration) or not.

Add/Remove Sprite Sheet Gutter, Padding, and Spacing

Takes a heavily-packed sprite sheet with no padding between sprites/tiles and adds padding or spacing. Can also create a "gutter" around seamless tiles, filling the padding with the tile's edge pixels, preventing seams from appearing when using the tile in a 3D rendering environment due to interpolation.

Can also remove padding/spacing from a sprite sheet.

--------------------------------
Update Version 1.1 (5/17/12):
- Script now supports non-opaque sprites
- Moved scripts to Filters > Sprite Sheets menu

Update Version 1.0:

Plug-in: ArrowsCreator.py

Another thin arrow GIMP Python plug-in called 'ArrowsCreator'.

It's characteristics are:

-produces many different types of straight arrows
-produces one type of 'path' arrow
-facilitates combination of multiple arrows
-interactive with GIMP
-developed on GIMP 2.6 (work on 2.8 except no repeat gradient in shaft and GIMP don't control brush size).

ATTENTION: don't change layer during execution of the plug-in. Also on my computer begin to get sluggish for certain type of arrow in image greater than 7 Mpx.

GIMP Book

GIMP Book is a script for managing multiple pages in the GIMP, it's great for creating comic books, illustrated books, sketch books or similar. It opens a separete window with thumbnails of all your pages, where you can add, delete, sort and rename them. Once you're done you can export your book to various formats, for web or print.

Add outline to layer

This simple script adds a outline to the selected layer.

path-csv: import/export paths from/to CSV files

For the script-fu/python-fu-challenged but spreadsheet mavens, a little piece of code that lets you export/import paths from your favorite spreadsheet programs, when the path you want to create can be computed, for instance to create this:

Available in my collection of path-related scripts. Please RTFM, there are some quirks.

Export Layers as PDF

I'm tired of building a PDF from layers manually so I finally got around to scripting it. This requires "convert" from ImageMagick to be installed. It has been tested on Linux(Ubuntu).

Pages

Subscribe to RSS - Python