0% found this document useful (0 votes)
3 views40 pages

GIMP Basic Function - Edit and View

Chapter 9 of the Gimp User's Manual details the Edit and View menu functions, including common commands like Cut, Copy, and Paste, as well as unique features like Paste Into and Cut/Copy Named. It also covers image manipulation tools such as Clear, Fill, Stroke, and zoom options, alongside the use of rulers and guides for precise editing. The chapter emphasizes the importance of keyboard shortcuts and dynamic key bindings for efficient workflow.

Uploaded by

Uchiha Pororo
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views40 pages

GIMP Basic Function - Edit and View

Chapter 9 of the Gimp User's Manual details the Edit and View menu functions, including common commands like Cut, Copy, and Paste, as well as unique features like Paste Into and Cut/Copy Named. It also covers image manipulation tools such as Clear, Fill, Stroke, and zoom options, alongside the use of rulers and guides for precise editing. The chapter emphasizes the importance of keyboard shortcuts and dynamic key bindings for efficient workflow.

Uploaded by

Uchiha Pororo
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

C H A P T E R 9

Edit And View

This chapter covers the basic functions found in the


Edit and View menus. Some of these functions are
well-known to users of similar software, but some
features are quite unique to Gimp.
Edit And View

CUT, COPY AND PASTE


These three commands (all located on the right-click|Edit menu) are so
common that they shouldn’t need much explanation. As with ordinary word pro-
cessing, cutting and copying a part of an image will place that selection in a local
buffer. When you choose Paste, Gimp takes that selection from the buffer and
turns it into a floating selection, which you can either anchor to a layer, or put
into a layer of its own.
Note that the default shortcut keys for these commands are the same as in most
Windows programs: Ctrl+x for Cut, Ctrl+c for Copy and Ctrl+v for Paste.
You may have noticed the fantastic possibilities of dynamic key bindings in
Gimp. If you don’t like the default settings, you can choose any shortcut key you
like for a certain command by simply typing the new shortcut in the menu! Read
more about it in “Default Shortcuts And Dynamic Key Bindings” starting on page
9.

PASTE INTO
Right-click|Edit|Paste Into is a very useful command when you
want to insert an image into a defined shape in another image. To use it, you first
need to copy or cut the image you want to paste. Then, you make a selection shape
in the target image (if you use a little feather, you’ll get wonderfully soft edges to
your selection). Choose Paste Into and the image you copied will appear inside the
selection. Click on the Move tool and you can place the selection exactly where
you want it, before you anchor it by clicking elsewhere on the image.

CUT, COPY AND PASTE NAMED


You’re probably accustomed to being able to cut/copy and paste only one image
at a time. In other words, as soon as you copy or cut something new, the old copy
will be replaced by the new one.
Cut Named, Copy Named and Paste Named allow you to use a buffer that
can hold a great number of cut images. If you’re repetitively cutting/copying and
pasting a lot of images, this is an extremely convenient feature.
Select an image or part of an image that you want to cut or copy. Select the com-
mand right-click|Edit|Copy Named or right-click|Edit|
Cut Named. A small dialog box pops up and prompts you to enter a name for
your selection. After you enter a name and click on the OK button, your selection
will be placed in a buffer.
When you want to paste one of the selections you have named and put in the
named buffer, choose right-click|Edit|Paste Named. This com-
mand brings up a dialog which displays a list of all the selections you have saved.
To paste a selection, just choose its name and press Paste, and your selection will
appear as a floating selection in the active image.

146 The Gimp User’s Manual


Chapter 9

Figure 9.1 The Paste Named Buffer dialog

Note: The named buffer only exists as long as your Gimp session. If you want to
save a selection more permanently, you need to save it in a separate layer in your
image.
The option Replace Current Selection allows you to replace a non-floating
selection in the image with a selection from your list. Replace Current Selection
unchecked gives the same result as Paste Into, if you already have a selection in
the image. If you try to use this option with a floating selection, the float will be
anchored to the image. The selection from your list will turn into a new float in the
same place as the old one.
You can also delete a selection from the list if you no longer need it.

Figure 9.2 These images were created using Cut, Copy and Paste Named.

The Gimp User’s Manual 147


Edit And View

PASTE AS NEW IMAGE


This is a very useful function. When you apply right-click|Edit|Paste
as New Image to a selection, the image information within the selection will
be copied and pasted into a new image with the same size and proportions as the
selection. The selection itself will also be copied.
If your image has several layers, all layers present within the selection will be cop-
ied into the new image (small layers outside the section will not be copied). All
layer information such as visible layers, grouped layers, layer masks and
alpha channels will also be copied to the new image. To learn more about layers
read “Layers And Floating Selections” starting on page 315.

COPY VISIBLE
Right-click|Edit|Copy Visible will copy all visible layers to a flat
copy which you can paste into a new image. It’s like executing both Copy and
Merge visible layers at the same time. This function is quite handy when you
don’t want to alter the original layers, but only work with a quick copy. The copy
can then be pasted into a new image.

MULTISELECT
The right-click|View|Multiselect function is used to break up an
image into several smaller images. This is ideal for preparing your work for being
published on the Internet, since web graphics are often cut up in a grid system to
make them fit in an HTML table. Before invoking the Multiselect command, you
must prepare the image by dragging guides (See “Rulers And Guides” on page
151) to the exact position where you want the image to be partitioned off.

Figure 9.3 The image is ready


to be cut up by Multiselect; note
the guides

148 The Gimp User’s Manual


Chapter 9

When you apply the Multiselect command, the sections indicated by the guides
will be selected and copied into new images. As with the Paste as New Image
function, all layers and layer attributes are also copied. A layered image cannot be
save as a JPEG file, so if you are designing for the Web, we recommend that you
flatten the image (merge all layers) before applying Multiselect. This saves you
the trouble of flattening all of the small Multiselect images separately.

Figure 9.4 The image


after applying
Multiselect

CLEAR, FILL AND STROKE

CLEAR
Right-click|Edit|Clear is a powerful command that cuts without saving
what you cut away. Used in a layer, it will delete everything and leave an empty,
transparent layer. Used on a selection, it will delete or cut everything inside of it,
leaving only the “marching ants.” Used on a non-alpha background, it will delete
all background information, and leave only the background color that you see in
the toolbox’s background color swatch. If your image has an alpha channel (see
“Alpha Channels” on page 353), the background layer will become transparent.

FILL
Right-click|Edit|Fill is the equivalent of the Bucket Fill with a max-
imum fill threshold. It’s not as sophisticated as the Bucket Fill, but it’s quick, easy
and efficient. Note that this command always uses the background color in the
toolbox color swatch, whereas the Bucket Fill uses the foreground color.

The Gimp User’s Manual 149


Edit And View

STROKE
Right-click|Edit|Stroke creates a colored edge around the selection.
This edge, or contour, is based on what brush you’re using and what brush options
you have set in the Brush Selection dialog. Stroke can be used for creating
simple drawings from selection shapes, or for manipulating selection edges by
using Stroke with different artistic brushes and different settings for Spacing,
Mode and Opacity.

Figure 9.5 This example was created


with Stroke using the swan brush

ZOOM
If the Magnify tool is active, you can click in an image to zoom in, and
Shift+click to zoom out. To zoom a specific part of the image, drag diag-
onally across that part (draw a rectangle), and release the mouse button.
You can also pan a zoomed image by clicking and dragging on the image with the
middle mouse button.
Even if the Magnify tool is not active, you can zoom with the right-click|
View|Zoom in and right-click|View|Zoom out commands. The
default keyboard hotkeys are - (the minus sign or hyphen) for Zoom out and =
(the equal sign) for Zoom in. Since Gimp supports dynamic key bindings,
you can change = to + (the plus sign), if you like that better. Pressing 1 on your
keyboard will return the view to 1:1 scale.
The right-click|View|Zoom command allows you to choose from nine
different zoom scales: 16:1, 8:1, 4:1, 2:1, 1:1, 1:2, 1:4, 1:8 and 1:16. 16:1 is the
lower limit and 1:16 is the upper limit for zooming in Gimp.
Pressing - zooms in smaller steps than zooming using the scales. In other words,
to display your image in a scale of 1:3, press - three times.

150 The Gimp User’s Manual


Chapter 9

MAGNIFY OPTIONS
Allow Window Resizing means that the canvas size will always adapt to the
amount of zoom you use, so you’ll always be able to see the entire image regard-
less of zoom level. If you don’t want to use this option, you can press Ctrl+e for
Shrink Wrap, which will also adjust the canvas to the image size.

Figure 9.6 The Zoom Options dialog

RULERS AND GUIDES

RULERS
At the top and left sides of the image frame, you’ll see the Gimp rulers. As you
drag the cursor over an image, a horizontal and a vertical arrow will appear inside
the rulers, showing the current cursor position.
In Gimp, all images are measured in pixels by default, so the ruler unit is pixels.
You can change the ruler unit to millimeters or inches by editing [Link]|
gimprc file (see “Gimp Start Flags And rcfiles” starting on page 785).
However, there is not much point in doing so, because in Gimp v.1.0 you can’t set
image resolution and canvas size the way you can in Photoshop. Size (and there-
fore resolution) for a printed image is determined by the Print dialog or Save as
(Postscript) dialog (see “Printing Images” on page 96 and “PostScript And EPS”
on page 91). The reason for this is that Gimp is hard coded to handle all images in
72 ppi (dpi) which is the default for things like web images, but is quite insuffi-
cient for printing.

GUIDES
Horizontal and vertical guides can be dragged straight from the left or top rulers.
You can easily adapt the size, shape and position of a selection to the guides by
drawing it within the frame of two vertical and two horizontal guides.
You can also use the guides to set the exact point of origin from which you want
a selection to start. If you press the Ctrl key and start dragging close enough to
the point where the guides cross, that spot will be the center of the new selection.
Without Ctrl, the selection will start from the cross and continue in the direction
you drag.
To change the position of a guide, use the Move tool. Notice how the move cur-
sor symbol changes into a pointing hand when it touches a guide, and that the
guides will change color from blue to red when they are touched.

The Gimp User’s Manual 151


Edit And View

Figure 9.7 A screen shot of two


guides dragged into the drawing
area from the horizontal and
vertical rulers

TOGGLE AND SNAP


Right-click|View|Snap To Guides is enabled by default. If this option
is checked, moving any kind of selection close enough to the guides automatically
causes the selection to “stick” or snap to the guides.
If you don’t want to use guides and/or rulers, they can be toggled on and off with
the right-click|View|Toggle Guides or right-click|View|
Toggle Rulers commands.

UNDO AND REDO


These options should be self-explanatory. Because you’ll use them often, you
should learn their keyboard shortcuts by heart. The shortcut for right-click|
Edit|Undo is Ctrl+z and the shortcut for right-click|Edit|Redo is
Ctrl+r.

NEW VIEW, SHRINK WRAP AND WINDOW INFO

NEW VIEW
The right-click|View|New View command opens a new window that
displays the same image you’re currently working on. This enables you to watch
your creation from several windows, each with different focus and zoom if you so
desire. However, it is still the same picture, and the changes you make will appear
in all of the New View windows. If you want to try out different versions of your
image, press Ctrl+d to Duplicate. Unlike New View, duplicate windows are sep-

152 The Gimp User’s Manual


Chapter 9

arate, changeable copies of your original image. Changes made in one window
won’t appear in the other windows.

SHRINK WRAP
Right-click|View|Shrink Wrap will cause the canvas size to expand
or shrink based on your zoom, so you’ll be able to see the entire image regardless
of zoom level. If you want this to happen automatically every time you change the
zoom level, click on Allow Window Resizing in the Magnify tool options
dialog (double-click on the Magnify tool to display the Magnify tool options dialog).

WINDOW INFO
The Window Info dialog (right-click|View|Window Info) dis-
plays up-to-date information on the active window, such as Dimensions, Scale
Ratio and Display Type.

Figure 9.8 The Window Info dialog

The Gimp User’s Manual 153


C H A P T E R 10
Transform Tools

In this chapter, we’ll take a look at the different


transform tools, including the Move tool and the
Crop tool.
T r a n s f o r m To o l s

THE MOVE TOOL


The Move tool can move the entire image or layer, guides, floating
selections or empty selection shapes. Please read “Layers And Floating
Selections” on page 315 for information about layers.

MOVING WITHOUT USING THE MOVE TOOL


In “Selection Tools” starting on page 109 we discussed the fact that Gimp displays
a move symbol when you move your cursor over a selection, although a selection
tool (and not the Move tool) is active.
If you move your selection using this move symbol, the selection will become a
floating selection. You can only move it once, because the move symbol will
disappear as soon as you let go of the mouse button. To move your selection a sec-
ond time, you must switch to the Move tool.
You can also ignore the selection tool’s move symbol and go straight to the
right-click|Select|Float command. This procedure will make your
selection float without moving it from its current position. Should you decide to
move it, you can use the Move tool in the normal way.

MOVING FLOATING SELECTIONS


When you use the Move tool on a floating selection, you’ll notice that the
double-arrow symbol becomes a single arrow when the pointer is outside of
the selection. If you click your mouse when the single arrow is visible, the floating
selection will anchor to (merge with) the layer that was last active.

MOVING THE ENTIRE IMAGE OR A SINGLE LAYER


If you don’t have a selection, the Move tool will move the entire image outside
the drawable area. If your image has more than one layer, the Move tool will move
the active layer.

Moving Transparent Layers


The Move tool can’t move an empty, transparent layer. If you try to do that, the
Move tool will move the top layer in the layer stack instead! This happens because
the Move tool needs something solid to grab onto. Of course, you could paint a dot
of color in the empty layer, turn off all the other layers (see “Layers And Floating
Selections” starting on page 315) and then move the layer (by grabbing the layer
by the dot), but this isn’t a very convenient technique.
The solution to this problem is to press the Shift key as you drag. When you see
the yellow layer boundary turn blue, you’ll know for sure that you’re moving
the right layer.

156 The Gimp User’s Manual


Chapter 10

Moving Grouped Layers


Also notice that if you have grouped one or more layers (with the little anchor
symbol), they’ll all move, regardless of which layer is currently active. For exam-
ple, if you have grouped a text layer with a drop shadow layer, you’ll have to
ungroup them or merge them before moving another layer, otherwise you’ll move
all three layers. See “Layers And Floating Selections” starting on page 315 for
more information on working with layers.

MOVING EMPTY SELECTIONS


If you just want to adjust the position of a selection area, press the Alt key as you
move the selection. With this technique, only the empty form of the selection
moves, and not the contents.

Figure 10.1 Duplicating a


star shape by moving a selection

Note that this option only works for the normal (empty) selections you make with
a selection tool. You can never move a floating selection using the Alt key.
This option allows you to use the selection as a template: You can move the selec-
tion around and fill it every time you move it. Note that the Move tool or a selec-
tion tool must be active for this technique to work.

Hints
The Move tool has an extra feature that allows you to nudge (move in small, pre-
cise increments) a floating selection or a layer with the keyboard’s arrow keys
when the Move tool is active. Pressing the Shift key as you press the arrow keys
will increase the length of these steps. To nudge an empty selection, press the Alt
key and the arrow keys.
Note that when you make multiple selects, Gimp treats them as a unit. That
means that you can’t move one selection closer to another with the Move tool,
because all of the selected areas will move together as one.

The Gimp User’s Manual 157


T r a n s f o r m To o l s

THE CROP TOOL


The Crop tool corresponds to the “scissors” in Photoshop. You can crop
an image if you just want a part of the picture. To crop, click and drag the
marquee diagonally. Release the mouse button when you are satisfied and
the Crop Information dialog box will appear. See the next section for
more information on the dialog box.
The cropmarks can be placed very accurately. You can move the crop square by
dragging on the lower-left or upper-right corners, or resize it by dragging on the
upper-left or lower-right corners.
You can also move (nudge) the crop area using the arrow keys on your keyboard.
Alternatively, you can set guides (make sure that the Snap To Guides checkbox is
checked in the right-click|View menu) to position the crop area.

Figure 10.2 Screen shot showing


the Crop tool in action

Press the Crop button in the toolbox, or click inside the markings, and the portion
of the image inside the cropmarks will be your new image.

THE CROP INFORMATION DIALOG


This dialog displays the crop area’s X and Y Origins and Width and Height in
pixels. If you have created a selection in your image, you can click on the Selec-
tion button in the dialog box. This will automatically place the crop area as close
as possible to your selection.

Figure 10.3 The Crop Information dialog

158 The Gimp User’s Manual


Chapter 10

THE TRANSFORM TOOL


The Transform tool is much like the “Effects” menu in Photoshop.
Double-click on the Transform tool to see the Transform Tool Options dia-
log box, where you can choose whether you want to rotate, scale, shear
or distort a selection.

ROTATE
When you’re transforming using Rotation, you drag the mouse to rotate the
selection. Note that parts of the image will end up outside the drawable area, so
you may have to resize the image afterward.

Figure 10.4 Screen shot


showing that you may need
to resize the image after
rotating it

As you use the mouse to rotate the image, the rotation angle will be displayed
in a small dialog box. You can’t insert numbers into the dialog; it just displays how
much you’ve rotated the image (this is not a very precise tool). However, you can
press the Ctrl key and drag on the image with your mouse, which makes the
selection rotate in 15 degree increments.
If you want to rotate a layer or image 90 or 270 degrees (for example, if you
scanned an image in portrait mode and you want landscape) the right-click|
Image|Transforms|Rotate option is a better choice.
If you need to specify the exact rotation angle, use the right-click|Layers|
Transforms|Rotate Any Angle option. Note that you can’t get exact
values by just dragging the slide bar in the Rotate Any Angle dialog. Click the
mouse button to the left or right of the slider to change the angle in one degree
increments for every click.

Figure 10.5 The rotation angle


dialog

The Gimp User’s Manual 159


T r a n s f o r m To o l s

SCALE
Choose Scaling from the Transform Tool Options dialog and then click on the
image to see the Scaling Information dialog. The Scaling Information dialog pro-
vides you with information on both the Original Height and Original Width
of the selection, as well as the Current Width and Current Height.

Figure 10.6 The Scaling information


dialog

Drag on the image with your mouse to scale the image. The X Scale Ratio and
Y Scale Ratio tell you how much you’ve altered the size and proportions of the
original image.
The Ctrl key locks the scale’s X axis, so you can only affect the height of the
image. Shift locks the Y axis, so you can only affect the width of the image.
Ctrl+Shift forces the image to scale proportionally.

Figure 10.7 Screen shot of a


downscaled image

SHEARING
Shearing will deform an image in either the horizontal or the vertical plane. In
other words, it will turn a rectangle into a parallelogram.

Figure 10.8 The Shear info dialog

160 The Gimp User’s Manual


Chapter 10

Click on the Shearing option in the Transform Tool Options dialog, then click on
your image to see the Shear Information dialog. Shear your image by click-
ing and dragging on the corners. Dragging up and down shears in the Y direction,
and dragging on the sides shears in the X direction. You can shear along either of
the X or Y axes, but only on one at a time. In other words, if the X Shear Magni-
tude is other than zero, then the Y Shear Magnitude must be zero.

Figure 10.9 A screen shot of Shear


in action

Tip: If you want to shear a selection both ways, you have to change to another tool
icon, and then return to Transform.

PERSPECTIVE
The last option on the Transform Tool Options dialog is Perspective. The term
perspective isn’t quite accurate, because no actual perspective transformation
takes place (making the image small in the far end and large in the other).
It is better described as a distortive effect, since you can move all four displace-
ment points (the corners) independently. You can certainly make a rectangular
selection look like a perspective, but you have to do that manually.

Figure 10.10 A screen shot showing


Perspective in action

The Gimp User’s Manual 161


T r a n s f o r m To o l s

Observe that you can turn the “perspective” inside out if you like. If you let the
lines of the perspective square cross or top each other, you’ll mirror and wrench
the selection so much it will eventually become unrecognizable.

Transform Smoothing
On the Transform Tool Options dialog, the Smoothing checkbox provides an
antialiasing option, which will make distorted edges look better. If you don’t
use Smoothing, your selection might turn out very rough and pixly on the edges.
On the other hand, the Smoothing option can make edges very blurry, so you
should take that into consideration as well.

Figure 10.11 The Transform Tool


Options dialog

THE FLIP TOOL


On the toolbox, the Flip tool does exactly that — it flips the image, or
more accurately — the Flip tool mirrors the selection horizontally or
vertically. If you are working with an image where you want the illusion
of reflection (whether in water, glass or metal), this is the tool to use.

THE MAGNIFY TOOL


Please turn to “Zoom” on page 150.

162 The Gimp User’s Manual


C H A P T E R 11
Text And Fonts

Gimp’s support for text is based on how the X


Window System manages fonts.
Te x t A n d F o n t s

THE TEXT TOOL


To insert text in a Gimp image, click on the Text tool in the toolbox and
then click at a spot inside the image. The Text Tool dialog box will open
and display a list of the installed fonts. Type in the text you want in the text
box in the bottom of the dialog. Click on the font you want, set the parameters if
you want to change the default values and click OK.
Now your text string will appear as a floating selection in your image. The text
will have the same color as the foreground color in the toolbox. If for some rea-
son you aren’t happy with the text — if it’s too small, too large or if the font just
doesn’t look right — you can delete the floating text selection by pressing the
cross (Delete Layer) button in the Layers & Channel dialog.

MOVING AND ANCHORING TEXT


To move the text selection to another position, place the cursor on top of the text
so that the move symbol appears, then click and drag the text. You can move
and drop the text as many times as you like, and you don’t have to switch to the
Move tool.
When you’re satisfied with the position of the text, you have two options. You can
either anchor the text to the last active layer, or place it in a layer of its own. To
merge the text with the image, press the Anchor Layer button in the Layers &
Channels dialog. To create a text layer, press the New Layer button or double-
click on the Floating selection icon bar.
Once you’ve anchored the text to the image, you can’t edit it anymore. However,
if you choose to place it in a transparent text layer, it’s easy to move the entire text
layer with the Move tool.

CHANGING THE TEXT COLOR


It is also simple to change the color of the letters in a text layer. First, make sure
that the Keep Transp. radio button is checked in the text layer. Choose
right-click|Select|All, click in the foreground color field in the tool-
box to access the Color Selection dialog and choose another color. Then select the
Bucket fill tool and click in the layer.
Tip: If you want to be able to edit the text, you should use a great plug-in called
Dynamic Text instead of the Text tool. Read about this plug-in in “Dynamic Text”
on page 588.

166 The Gimp User’s Manual


Chapter 11

OPTIONS
At the top of the Text tool dialog, the current Text Size is shown in either pix-
els or points (you can choose which you prefer from the pull-down menu). A
pixel is the smallest component in a bitmap image, and all measures in pixels
depend on the screen resolution. A point, however, is a fixed value — one inch
is the same as 72 points.
Points are used to measure fonts. For example, 12 points is the standard size of
body text in most word processing programs.
Standard screen resolution is often 72 pixels per inch, in which case text in pixels
will be the same size as text measured in points. However, on a high-resolution
screen, such as one with a resolution of 90 pixels per inch, setting the text to points
will render a larger text than setting the text to pixels. For example, there are 90
pixels for every 72 points, so a text size of 50 points will be 63 pixels wide,
because there are 1.25 pixels for every point.
Antialiasing is an effect used to smooth edges in bitmapped images. It is often
used on artistic text, because it softens the jaggies (the jagged pixel edges of the
letter’s curves in low resolution). It will blur the edge pixels to transparency. This
will make curves look smoother, but the edges will become unsharp and less dis-
tinctive.
The Font list displays all fonts installed on the local X server. Click the name
of a font to change the text in the text box. Note that some of the more unusual
fonts (such as Chinese or Japanese fonts) may bring X to a near-crashing halt sim-
ply because so many characters are involved. As a rule, be careful using fonts with
Asian names, or avoid them entirely. To learn how to install new fonts, read “How
To Get Fonts To Gimp” starting on page 759.

FONT PARAMETERS
There are eight font parameters (Foundry, Weight, Slant, Set width, Spac-
ing, Registry, Encoding and Border) in the Text Tool dialog box.

The Gimp User’s Manual 167


Te x t A n d F o n t s

Figure 11.1 The Text tool


dialog

Foundry
Foundry refers to the origin of your font (usually the manufacturer). This param-
eter has to distinguish different fonts with the same name that are from different
companies. This is important, because many different versions of well-known
fonts exist and you need to specify which one you mean if you have several ver-
sions installed.

Weight
Weight shows what typographic “blackness” options you have for the font you
have chosen (black, bold, demibold, medium and regular). Options that aren’t
available for the chosen font are grayed out.

Slant
Slant is the “posture” option. The letter r (Roman) signifies upright posture. The
letters i (italic) or o (oblique) are two different slanted postures. i produces a
good representation of the letters and o gives a simpler, more jagged italic type.
The available posture depends on the font.

Set Width
This is an option if your font includes the built-in possibility of modifying the hor-
izontal width. Sometimes, the same font will come in wider and narrower ver-
sions, typically called black, semi-condensed and narrow.

168 The Gimp User’s Manual


Chapter 11

Spacing
Spacing displays what types of built-in spacing your font allows: c for character
cell, m for monospaced and p for proportional. The c and m fonts are
mainly for programmers and are used in terminal display windows. In these fonts,
every character takes up the same amount of space. The proportional fonts are
what you might consider to be “normal” typographical fonts, because they are not
constrained to a fixed width. Each character can take up a different amount of
space.

Registry And Encoding


These are options for advanced users, and you’ll probably never have to bother
about these parameters. For additional information read “How To Get Fonts To
Gimp” starting on page 759.

Border
The Border option will increase the size of the text layer that is created when you
press the New Layer button or double-click the Floating Selection icon bar
in the Layers & Channels dialog. Border is useful when you plan to put your text
in a text layer, and feel that you’d like some extra space around the letters.
As you may know, when you place a floating selection in a layer of its own, Gimp
will optimize the layer size to be as small as possible. When you have placed the
text in a layer (click on the text layer’s icon bar to make it active), you’ll see a yel-
low-dotted rectangular box around your text. This is the layer border.
The default value, which is a border of zero pixels, fits text very snugly, whereas
larger borders increase the size of the layer. Change the Border parameter if you
need some space for kerning your letters by hand (adjusting the spacing between
the letters), or if you just want to move each letter around separately. If you find
that the layer size wasn’t large enough after all, you can always change it by using
Resize Layer in the Layers menu. More information on floating selections
and how to move letters is included in “Moving Objects In A Floating Selection
Layer” on page 332.

The Gimp User’s Manual 169


C H A P T E R 12
Brushes, Gradients, Palettes And Patterns

How to use these basic tools, and how to create your


own brushes, palettes, patterns and gradients.
Br ushes , Gradients , Palettes And Patter ns

BRUSHES
The Brush Selection dialog is accessible from the toolbox (File|Dia-
logs|Brushes) or from right-click|Dialogs|Brushes.
The Brush Selection dialog displays all the available brushes. You may notice
some unusual brushes, like artistic text, little flourishes or doodles, etc. Such
brushes are not very difficult to make yourself. In this section, we’ll discuss how
to create a brush. First, however, we’ll take a look at the Brush Selection dialog.

THE BRUSH SELECTION DIALOG


When you select a brush, its name and size in pixels will be displayed at the top
of the dialog. The Mode pull-down menu lets you select what kind of mode your
brush will use (more information about modes is included in “Modes” starting on
page 335).
Tip: If you can’t see the whole brush, click and hold on the brush square and the
entire brush will appear (and disappear when you release the mouse).
The Opacity slider sets the amount of transparency. With the max value of 100,
your brush paints with a solid color. An Opacity of zero gives you total transpar-
ency (or invisible paint).
Spacing is the distance between your brush marks. If you set the spacing to zero,
the brushmarks will create a solid, brush-shaped line.

Figure 12.1 The Brush Selection dialog

Test one of the Circle brushes and set the spacing to 150. Your brush stroke
will now consist of a dotted line. The larger spacing makes it clear that the brush
shape is circular, but if you had used the default spacing, you wouldn’t be able to
see it.
Now, try a decorative brush like the Guitar pattern. Change the spacing value to
10 or less (mouse-click the Spacing slidebar and use the arrow keys to set exact
values) and see what happens. Normally, you’ll want to use low spacing values,
but when you paint with special brushes a bit of spacing can be useful.

172 The Gimp User’s Manual


Chapter 12

CREATING A NEW BRUSH


1. Create a new image using Image Type: Grayscale and Fill Type: White.
2. Use the Pencil tool to draw an X inside the image frame.
3. Invert the image with right-click|Image|Colors|Invert.
4. Rescale it to 20x20 using right-click|Image|Resize.
5. Use File|Save as to save the image as [Link]. In the Save as Brush
dialog, set the Spacing to 15 and set the Description to New Brush.
6. Move [Link] to your .gimp/brushes directory.
7. Open the Brush Selection dialog (right-click|Dialogs|
Brushes) and press the Refresh button. The new brush will now appear in
your Brush Selection dialog as New Brush (20x20).
Tip: To make good-looking brushes, make them large and then resize them to the
size you want.
Note that creating the brush in a solid black color (before inverting) makes your
brush look hard. If you use a gray color, the brush will look softer. The same effect
occurs when you create a brush with lots of blur; the new brush will have soft
edges. Experiment with different kinds of brushes. Create them with or without
blur, soft edges, etc. until you achieve the effects that you want.

PATTERNS
You can fill selections or backgrounds with a pattern instead of with a solid
color. Gimp includes many preset custom patterns. You can also find patterns at
many Gimp users’ home pages. If you’re interested in finding more patterns, look
through [Link] and/or search the web using
your favorite search engine for terms like gimp and patterns.
Click on right-click|Dialogs|Patterns to access the Pattern
Selection dialog. If you can’t see the whole pattern, click and hold on the pattern
square and the entire pattern will appear. Once you’ve clicked on a pattern, it is
selected. You can see the name of the selected pattern in the upper-left corner of
the dialog.

The Gimp User’s Manual 173


Br ushes , Gradients , Palettes And Patter ns

Figure 12.2 The Pattern Selection


dialog

To use a selected pattern, double-click on the Fill tool icon to display the Bucket
Fill Options dialog. Under Fill Type, select Pattern Fill. Now you can click
on a selection to fill it with your selected pattern. You can also paint with patterns,
using the Clone tool, but you can’t use patterns with any other tools.

Figure 12.3 The Bucket Fill Options


dialog

MAKING A NEW PATTERN


To make your own pattern:
1. Open a new RGB image and set an appropriate size for your pattern tile.
You may want to make two versions of your pattern, one larger (say
256x256) for pattern filling in high resolution/large images, and a smaller
version (such as 64x64) for filling smaller images (like GIFs for the web).
2. Create a pattern tile by painting something interesting, or by pasting part of a
scanned photograph into your image.
3. Your tile will reproduce itself in a rather stiff perpendicular grid, so if you
want a wallpaper effect with a simple repeated shape, it’s a good idea to use
the right-click|Image|Channel Ops|Offset command to
modify your pattern.
This is how you do it:

174 The Gimp User’s Manual


Chapter 12

• First, check out what your present pattern will look like by opening
right-click|Filters|Map|Small Tiles. This filter is more
than useful when you create patterns, because it gives you a sneak preview
of what your pattern will look like, as well as the opportunity to modify it
(read more about this filter in “Small Tiles” on page 558).

Figure 12.4 A single dot will not render a good pattern

• Open the Layers & Channels dialog box and duplicate the pattern
layer.
• Open the Offset dialog box and offset the top layer by x/2 and the
bottom layer by y/2. (This is not the same as offsetting the original image
with the Offset by (x/2),(y/2) button!)
Set the top layer in Multiply Mode (if the background color is other
than white, the pattern element must be created in a transparent layer on
top of the colored background layer), then flatten the image and take a
look at your pattern once again with the Small Tiles preview.

Figure 12.5 If you use Offset you will get a better pattern, as
you can see in the final outcome (right)

4. If you have created a more complex pattern or have used a photograph (for
example, a wood structure), you will also need to use the Offset option to
remove visible seams between tiles. This is described in more detail in
“Offset” on page 294. The right-click|Filters|Map|
Make Seamless filter is also a useful tool, but the result is often a bit

The Gimp User’s Manual 175


Br ushes , Gradients , Palettes And Patter ns

blurred (see “Make Seamless” on page 550 for more information about this
filter).
You can also take an existing pattern and change it. System patterns are in
usr/local/share/gimp/patterns (of course, this location varies,
depending on site setup).
5. When you’re satisfied with the tile, resize the image to fit the tile size of the
pattern you want to create. Use File|Save As to save the image as a PAT
file in the .gimp/patterns directory.
6. Click on right-click|Dialogs|Patterns to view the Pattern
Selection dialog. Press the Refresh button and your newly created pattern
will be available for use.

PALETTES
Use right-click|Dialogs|Palette or File|Dialogs|Palette
to display the Color Palette dialog.

PALETTE OPTIONS
Select New Palette from the Ops pull-down menu to create a new palette, and
name the new palette. The same pull-down menu allows you to refresh and delete
palettes. When you create a new palette, you always start with an empty (black)
palette.

Figure 12.6 The Color Palette dialog

To add a color to the new palette, use the Color Picker tool to select a color from
an image, or specify a color in the Color Selection dialog (open this dialog by
double-clicking in the foreground color swatch in the toolbox). The chosen color
is always visible as the foreground color in the toolbox. Press New to add this
color to your palette.

176 The Gimp User’s Manual


Chapter 12

Edit a color in your palette by selecting it and pressing the Edit button, which will
open the Color Selection dialog (see “The Color Selection Dialog” on page 143).
You can delete a color by selecting it and pressing Delete.
As soon as you edit a system palette (any palette other than your personal pal-
ettes), it will move to your personal palette directory. You can’t delete a system
palette; Gimp will simply acknowledge that you don’t want to use it in this ses-
sion. However, if you delete a personal palette, it is gone forever.
Note that if you have added a large number of palettes to the palette directory, it
will take some time before they are all displayed in the pull-down menu.

CREATING A PALETTE FROM AN INDEXED IMAGE


You can create a palette from an indexed image. This is quite handy if you only
want to use the specific colors contained in the image. Here’s how you do it:
1. Convert the image to Indexed mode with right-click|Image|
Indexed.
2. In the Index dialog, select how many colors your palette should comprise and
click OK.
3. Save the palette with right-click|Image|Save palette.
4. Name the palette and press OK.
Your palette now exists, but Gimp will need to re-read all the palettes. Use
right-click|Dialogs|Palette to display the Color Palette dialog.
Click on Refresh Palettes in the Ops pull-down menu, and your new palette
will become a choice in the list of available palettes on the Color Palette dialog.

Hints
Tip: Use palettes when you want to create images with a fixed number of colors,
for example, when you are creating icons.
If your screen depth is only 8 bit (256 colors), you’ll need to be concerned about
whether the created icons use up all 256 colors. If your icon manager reduces the
number of colors it may look awful. You’ll need to create a palette with a limited
number of basic colors for your icons and then create the icons using those colors.
The palette file format is similar to the format of the [Link] file used by the X Win-
dow System. Each color has a line for the RGB number values of the color and
then the name of the color. This means that you can edit palette files in an ordinary
text editor.

THE GRADIENT EDITOR


When we mention gradients, the Blend tool may come to mind. The Blend tool
lets you “flood” a selection or image, starting with one color and smoothly chang-
ing into another.

The Gimp User’s Manual 177


Br ushes , Gradients , Palettes And Patter ns

Gimp allows you to do even more complex blends with a tool called the Gradi-
ent Editor. The Gradient Editor comes with a number of preset custom gra-
dients, but you can also create your own gradients or edit one of the custom
gradients with this tool. The Gradient Editor is a flexible tool that can create very
advanced gradients.
To apply a gradient from the Gradient Editor you double-click on the Blend tool
icon in the toolbox and select Custom (from editor) from the Blend pull-
down menu in the Blend Tool Option dialog.
The custom gradients from the Gradient Editor can be very useful. You can use
them in advanced fountain fills or patterns, and you can also create objects with
them, like an eyeball, a hole or a pipe. For tips on how to make the best use of the
gradients in the Gradient Editor, read about the Blend tool, which is described in
“The Blend Tool Or Gradient Fill” on page 131.

Figure 12.7 This example shows


how a gradient was used to create
pipes.

THE GRADIENT EDITOR DIALOG


Click on File|Dialogs|Gradient Editoror right-click|Dialogs|
Gradient Editor to open the Gradient Editor. The user interface is shown in
Figure 12.8. You’ll find a list of all available gradients under Gradients, and the
currently selected gradient can be seen in a preview window.
The buttons to the right let you create, copy, delete, save and refresh gradients. If
you click the right mouse button in the gradient preview window and hold it down,
a menu of editing tools will appear for that gradient. You can also zoom the gra-
dient with the zoom buttons present in the main dialog.
The Save as POV-Ray button allows you to save a gradient in POV format.
POV-Ray is a popular ray tracing software program.
If you have downloaded a gradient and placed it in .gimp/gradients, you
will have to press the Refresh gradients button to see and use it.

178 The Gimp User’s Manual


Chapter 12

Edited system gradients will be saved to your personal gradient directory (.gimp/
gradients). So if you want to use the original system gradient, and not the edited
copy, just delete or move the edited copy from your personal directory.
If you delete a system gradient, it just means that you don’t want to use it in this
session. However, as is the case with personal palettes, if you delete a personal
gradient it will be gone forever.
.

Figure 12.8 The Gradient Editor dialog

So, What Can You Do With The Gradient Editor?


Start by copying a gradient and playing around with it. Select a gradient and click
on the Copy gradient button. This will bring up the Copy Gradient dialog,
which will ask you to name the new gradient. Name the copied gradient and click
OK. If you edit a system gradient, it will now be copied to your personal gradient
directory, as when you edit system brushes or palettes.
Note: There is no undo option in the Gradient Editor.

THE GRADIENT PREVIEW WINDOW


The triangles at the bottom of the gradient preview window are color section
markings. Two kinds of marks exist: black endpoints and white midpoints. The
area between two black points is called a segment. In the gradient shown in Figure
12.8 a segment has been selected by clicking on it. A selected segment turns a
darker shade of gray.

Adjusting Endpoints And Midpoints


• You can move an entire selection by clicking in the darker gray field and
dragging, but you can only move it as far as the next midpoint to the left or
right.

The Gimp User’s Manual 179


Br ushes , Gradients , Palettes And Patter ns

• If you move a white midpoint (by clicking and dragging on it), you will
see the color transition shift as the balance between the two end
colors is being changed.
• Dragging a black endpoint (not the ones to the extreme left or right,
because you can’t move them) will stretch the area between that
endpoint and the midpoint, making it wider or narrower. The stretch
limit is the next midpoint to the left or right.
• If you click on an endpoint, then press Shift and drag, you will
compress or expand the entire selection in the drag direction. This
deformation will also include the neighboring midpoint, which will move
along until you reach the next endpoint.
• You can extend or add to a selection by pressing the Shift key and
clicking on another segment.
Any of the described manipulations can be used on extended selections (more than
one segment).

THE POPUP MENU


As mentioned before, if you press the right mouse button in the gradient preview
window, a menu will appear for editing the colors in the selected segment.

Editing An Endpoint’s Color


You can edit the color of the endpoints by selecting either Left endpoint’s
color or Right endpoint’s color from the popup menu. This will bring up a
color select dialog where you can select a new color.

Figure 12.9 The popup


menu

The Load from and Save to menu options allow you to load a color from an
RGBA channel to an endpoint, or to save an existing endpoint color to one of the
preset RGBA channel swatches, so that you can load that color later.

180 The Gimp User’s Manual


Chapter 12

The Load from command allows you to load some nice basic colors and trans-
parent backgrounds. The Save to option is useful if you want to use a particular
endpoint color in another part of the gradient.
Figure 12.10 The endpoint’s
Load from menu

Blending Functions
In the Blending function for segment submenu, you will find some func-
tions that control how the appearance of the gradient in your selection:
• Linear: This is the default function, and it causes the color to change at
a constant rate from one endpoint to another.
• Curved: Causes the end sections’ colors to change at a different “rate”
than the colors in the middle section. Think of it as a semi-circle where the
color changes more at the ends and less in the middle.
• Sinusoidal: This is the opposite of Curved, so the rate of change is slow
at the ends and fast in the middle.
• Spherical increasing: Causes the color change rate to be faster on the
left and slower on the right.
• Spherical decreasing: The opposite of spherical increasing; the color
change rate is slower on the left side and faster on the right side.

Coloring
The coloring type for segment submenu lets you choose a color model for
your selection or segment. You can choose Plain RGB and two kinds of HSV.
See “Color Models” starting on page 187 for more information on the different
color models.

The Gimp User’s Manual 181


Br ushes , Gradients , Palettes And Patter ns

Segments
The Segment commands will work on the selected segment. If you have selected
more than one segment, they will not be treated as a unit. Each segment will be
treated separately:
• Split segment at midpoint: Puts an endpoint at the midpoint and
then divides the two new segments with new midpoints.
• Split segment uniformly: Lets you specify how many splits you
want to make in the selected area.
• Delete segment: Deletes the entire selection, not just the segment you
press the right mouse button in.
• Re-center segment’s midpoint: Re-centers the midpoints in all of
the selected segments.
• Re-distribute handles in segment: Evenly distributes all the
points in the segment. This is useful if you have selected several segments
and want a smooth gradient in the selection.

Selection Operations
The Selection operations submenu allows you to flip or replicate the segment
and also allows you to blend the endpoints’ colors and/or opacity:
• Flip segment: Lets you flip or reverse a segment or selection. Flip can
be used to change the order of two segments. First, select two segments
and flip both together. Deselect one segment and flip the other one. Select
the first segment and flip that one, too. Now you have changed the order of
your segments. This can be done to more than two segments, and gives
you the freedom to change the structure of the gradients.
• Replicate: Provides a small dialog in which you can copy the selected
segment(s) as many times as you like. The copies will be squeezed into
the original segment’s space.
• Blend endpoints’ colors: Only works if you have selected more than
one segment. It will blend the color in the endpoints of the selection, and
will subsequently “merge” your segments so they blend gradually from
the selection’s left handle to the right handle, thus changing the color of
the endpoints inside the selection.
• Blend endpoints’ opacity: Works the same way as blending colors.
This command will create a soft transition from the opacity (transparency)
in the left endpoint to the opacity in the right endpoint of a multi-segment
selection.

182 The Gimp User’s Manual

You might also like