1999-08-24 13:30:14 +08:00
|
|
|
Gimp Image Pipe Format
|
1999-08-19 13:22:45 +08:00
|
|
|
|
2000-12-19 04:37:23 +08:00
|
|
|
The gih format is use to store a series of brushes, and some extra info
|
|
|
|
for how to use them.
|
1999-08-19 13:22:45 +08:00
|
|
|
|
|
|
|
Basically, the format is real simple. It is a text header, followed
|
2000-12-19 04:37:23 +08:00
|
|
|
by a series of gbr files, all concatenated together.
|
1999-08-19 13:22:45 +08:00
|
|
|
|
2000-12-19 04:37:23 +08:00
|
|
|
An image pipe can be thought of as an n-dimensional array of brushes.
|
|
|
|
Each dimension is indexed when the pipe is used in painting by some
|
|
|
|
parameter, eg an incremental counter, a random value, pointing device
|
|
|
|
pen pressure,tilt or velocity , etc.
|
1999-08-24 13:30:14 +08:00
|
|
|
|
|
|
|
An idea for how to implement editing of image pipes (with the GIMP) is
|
|
|
|
that each layer of the edited image representing the pipe is divided
|
|
|
|
conceptually (and visualized by guides) into equal-sized elements,
|
|
|
|
each element containing one pixmap brush. The typical cases are only
|
|
|
|
one layer, with an array of brushes, or many layers, with just one
|
|
|
|
brush per layer. (For instance something produced by some animator.)
|
|
|
|
|
1999-08-19 13:22:45 +08:00
|
|
|
The header format
|
|
|
|
================
|
|
|
|
|
1999-08-24 13:30:14 +08:00
|
|
|
First line is the name of the pipe.
|
|
|
|
Second line is the number of brushes in file, followed by the contents of
|
|
|
|
the gimp-image-pipe-parameters parasite (a text string)
|
1999-08-19 13:22:45 +08:00
|
|
|
|
|
|
|
ie
|
|
|
|
===========================
|
|
|
|
Fire
|
1999-08-24 13:30:14 +08:00
|
|
|
6 ncells:6 step:20 dim:1 cols:3 rows:2 rank0:6 selection:incremental
|
1999-08-19 13:22:45 +08:00
|
|
|
===========================
|
|
|
|
|
2000-12-19 04:37:23 +08:00
|
|
|
The rest is just gbr files catted in.
|
1999-08-19 13:22:45 +08:00
|
|
|
|
|
|
|
Making a gih file:
|
|
|
|
|
2000-12-19 04:37:23 +08:00
|
|
|
1. Create a series of gbr files. Note these do not
|
1999-08-19 13:22:45 +08:00
|
|
|
need to be the same size.
|
|
|
|
|
|
|
|
2. Create a text header like above.
|
|
|
|
|
|
|
|
3. Combine them all together:
|
|
|
|
|
2000-12-19 04:37:23 +08:00
|
|
|
cat header brush1.gbr brush2.gbr brush3.gbr > foo.gih
|
1999-08-19 13:22:45 +08:00
|
|
|
|
|
|
|
|
2000-12-19 04:37:23 +08:00
|
|
|
Or use the GIH plug-in to save a brush pipe from an image.
|
1999-08-19 13:22:45 +08:00
|
|
|
|
|
|
|
|
2000-12-19 04:37:23 +08:00
|
|
|
Thats about it for now.
|