Nov 23, 1998
Added a fix by Uwe Koloska that solves a problem with cutting an image with unequally sized multi-layers in the paste-as-new-image function.
Thanks Uwe!
Oct. 24, 1998
Added 'paste-as-new-image'
Oct. 23, 1998
Multisection is an extension to GIMP
which automatically performs the
tedious sectioning of an image to create multiple images.
The idea for this came when I
was designing the CVIP
web page front-end where I drew the the page with gimp and then
proceeded to cut out sections of the image to make javascript-driven
buttons and lay the
whole design into an HTML table. It literally took hours
of counting pixels, cropping,
cutting and pasting images to finally get the look I wanted.
There had to be a better way!
Looking at GIMP, I thought it would be nice if it could do this tedious
chore and that is
where the Multisection came up.
Initially I though this would be easy to write as a plugin,
but from what I can tell from
libgimp and the gimp header files, I didn't see any obvious way of
accessing GIMP's
guide lines. (These are the guide lines that are pulled in from
the ruler lines on the top
and left of the image display). So instead of a plug-in,
Multisection is actually an
extension (or update) of the gimp-1.0.1 source code.
Paste_as_new_image was added today. This function resolves one
of the
items in the 'gimp-wish-list'. It will paste as a new image!
It only
took a few minor changes to the multisection code to add this feature.
It
will even keep the selected objects active in the new image allowing
one to
do a select->invert, flood-fill to clear the background of irregular
shaped
objects.
Usage:
Edit->paste as new image
View->multisection
ScreenShot

"Paste as new image" screen shot.

Installing the Multisection Extension
This version of the Multisection Extension should work with Gimp versions
1.0.1. You
will need the gimp source code to install. Download multisection.tar.gz.
cd to where gimp 1.0.1 was extracted.
cd to the directory called 'app'
gunzip mulisection.tar.gz
cat multisection.tar | tar -xvf -
cd backto gimp 1.0.1 toplevel directory
./configure
make
The changes made are to the following files: commands.c commands.h menus.c
(and Makefile.in)
Added are multisection.c and multisection.h. Simply grep multisection
*.c *.h if you would like
to know where the changes are located at. Note: This is not a
patch file, and the installation
instructions above assume a 'clean' version of gimp 1.0.1. Patches
to changed gimp-1.01, and 1.0.2 files will be available next week.
Have Fun,
Chuck Sites
University of Louisville