4. Masks
Keywords: GIMP, gimp, Gimp, GNU Image Manipulation Program, gnu image manipulation program, Gimp tutorials, GIMP tutorials, gimp tutorials, Linux applications, linux applications, editing digital images, digital image editing, photo touchup, photo enhancement, enhancement photos, touchup, enhancement, image touchup, image enhancement, enhancement images, touchup images, digital collage, collage, compositing, photo montage, montage, photos, images, stock photos, copyright free photos, selection, selections, mask, masks, color correct, color correction, colorspace, colorspaces, RGB, rgb, hsv, HSV, free-hand tool, free hand tool, lasso tool, bezier path tool, Bezier path tool, layer mask, layer masks, layer, layers, gradient tool, gradients, blend tool, blending, threshold tool, thresholding, histogram, curves tool, curves, levels tool, levels, color picker, eyedropper, wilber, wilber the gimp, Wilber the GIMP, magic wand, fuzzy-select tool, fuzzy select tool, crop tool, transform tool, text tool,  [cell cut: 1485 characters, first 1000 kept]

Next: 4.1 Channel Masks Up: Grokking the GIMP Previous: 3.6 Common Problems and

#
4. Masks

Masks are powerful GIMP tools, and it would be quite difficult to do many things without them. What are masks? They are selections! Actually, they are grayscale images that represent selections. In masks, the white regions represent selected pixels, the black regions unselected pixels, and the gray regions partially selected pixels.

You may be asking, ``Why do we need another way of representing a selection? Weren't the selection tools presented in Chapter 3 good enough?'' The selection tools are good, but masks provide a whole new set of options for creating and editing selections. This chapter demonstrates how the GIMP's painting tools, gradients, and filters can be used with masks to get selection results that would be impossible with the selection tools alone. Masks are complementary to the selection tools, and this chapter shows how the two can be used together to produce the most effective results.

In addition to the new capabilities for editing and creating selections that masks provide, they also have another very useful feature. A mask can be stored and used more than once. Selections created with the selection tools are more ephemeral. When created, they exist only until another selection is made or until they are canceled. Moreover, while a selection is present in the image window, it only allows operations to be applied to the pixels in the selected region. This means that active selections can impede the work flow because pixels outside the selected region cannot be processed. Thus, there is a need for selections that can be stored and reused. Masks provide this capability, and, as will be seen shortly, it is easy to convert selections to masks and vice versa.

There are two types of masks in the GIMP: channel masks and layer masks. A channel mask is an independent entity and can be applied to any image layer. Alternatively, a layer mask is associated with a single layer, on which it is totally dependent. Every layer in an image can have a layer mask, but each layer mask is specific to its own layer. In addition, the layer mask is directly linked to its layer's alpha channel. As was discussed in Section 2.2, the alpha channel controls the opacity of the layer. As will be developed more in this chapter, the alpha channel is just a special mask and, as a mask, it is just a special type of selection.

Selections, channel masks, layer masks, and alpha channels. They are the same, they are different, and it is all explained in this chapter. Read on!

- 4.1 Channel Masks
  - 4.1.1 The Channels Dialog
  - 4.1.2 Saving Selections to Channel Masks
  - 4.1.3 Making Channel Masks Visible
  - 4.1.4 Setting a Channel Mask's Color, Transparency, and Title
  - 4.1.5 The Channels Menu
  - 4.1.6 Combining Channels
  - 4.1.7 Partially Selected Pixels
- 4.2 Layer Masks
  - 4.2.1 Creating a Layer Mask
  - 4.2.2 Manipulating the Layer Mask
- 4.3 Basic Tools for Working with Channel and Layer Masks
  - 4.3.1 Painting Tools
  - 4.3.2 Selection Tools
  - 4.3.3 Gradients
  - 4.3.4 Transparency as a Tool for Editing Masks
  - 4.3.5 Blurring of Masks and Other Effects
- 4.4 Conversions of Selections, Channel Masks,
  Layer Masks, and Alpha Channels
- 4.5 Masks and Selections
  - 4.5.1 Using Masks to Refine Selections
  - 4.5.2 The Quick Mask
  - 4.5.3 Finding the Natural Mask
    - 4.5.3.1 Working with the `Threshold` Tool
    - 4.5.3.2 The `Threshold` Tool Versus the `Magic Wand`
    - 4.5.3.3 Threshold and Decompose
- 4.6 Common Problems and
  Frequently Asked Questions

Next: 4.1 Channel Masks Up: Grokking the GIMP Previous: 3.6 Common Problems and
©2000 Gimp-Savvy.com