© Phillip Whitt 2020
P. WhittPractical Glimpsehttps://doi.org/10.1007/978-1-4842-6327-3_2

2. Layers, Channels, Paths, and Undo History

Phillip Whitt1 
(1)
Columbus, GA, USA
 

Now that you’ve had a tour of the Glimpse interface, we’ll look closer at some important aspects of Glimpse and how they relate to image editing.

The topics covered in this chapter are
  1. 1.

    An overview of layers

     
  2. 2.

    An overview of RGB color channels

     
  3. 3.

    An overview of paths

     
  4. 4.

    An overview of Undo History

     

An Overview of Layers

Layers are important in image editing—they make the life of the Glimpse user much easier! Layers allow corrections, revisions, and other edits to be made without scrapping the image and starting over from scratch. Layers also allow more flexibility by utilizing various Blend Modes, which we’ll touch on in a later chapter.

Layer Basics

Layers can be thought of as transparent sheets containing graphical elements—each layer might have one or more elements. The combination of all the layers forms a complete image (Figure 2-1).
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig1_HTML.jpg
Figure 2-1

Layers are comparable to transparent sheets containing graphical elements that, when combined, form a complete image

The stacking order of layers can be changed or graphical elements can be added, removed, repositioned, or modified. This allows the user to exercise a great deal of control over the image being worked with.

In the old days of digital image editing (before the existence of layers), the work was done on a single, base image. If revisions were necessary, it usually required starting over from scratch (or, at the very least, encountering great difficulty when making revisions).

As mentioned a little earlier, layers offer the user much greater control over the editing process—if a mistake is made, the offending layer can be modified or discarded without affecting the rest of the image.

One example of how layers make life easier is it allows one to evaluate the work as it progresses and modify it when needed. For example, if I want to view the image without the clouds, clicking the eye-shaped icon in the Layers Dialog hides the layer’s visibility (Figure 2-2). It also renders the layer inactive—the layer is removed from the image without actually being discarded. Clicking the eye-shaped icon again reactivates the layer and its visibility.
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig2_HTML.jpg
Figure 2-2

Clicking the eye-shaped icon hides the layer’s visibility

Layers can be repositioned by using the Move Tool or the arrow keys. Figure 2-3 shows the layer containing the clouds has been repositioned slightly. The border of the layer is indicated by the dashed yellow and black outline.
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig3_HTML.jpg
Figure 2-3

Layers can be repositioned using the Move Tool or the arrow keys

Note

If you’ll notice, the repositioned layer’s border doesn’t line up with the rest of the image. By right-clicking the layer and selecting Layer to Image Size from the menu, the layer will be resized, and its border will match the rest of the image.

Layers can be drawn or painted on using the brush tools, or portions of the layer can be removed using the Eraser Tool.

Organizing Layers

Complex images may contain ten, twenty, or even dozens of layers. Using Glimpse, you can add as many layers to your project as your computer’s disc space can handle. When an image contains many layers, it’s important to manage them. Layers can be organized according to related graphical elements. The layers used in the illustration shown in Figure 2-4 are organized by using Color Tags—the layers containing mountains are tagged in blue, the layers containing the stars and moon are tagged in green, and the ones containing the clouds are tagged in yellow.
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig4_HTML.jpg
Figure 2-4

Using Color Tags helps keep organize layers containing related elements

This helps keep track of layers in more complex images and makes it easier to locate a specific layer when necessary.

Note

Color Tags can be added when launching the Create a New Layer dialog, or if the layer has already been created, double-clicking the layer thumbnail launches the Layer Attributes dialog and a Color Tag can be added then.

Layer Groups help keep layers managed as a list; this is useful for grouping layers that are similar or if you want to group layers that comprise an object in an image—this is especially useful if it’s a complex image many layers are involved. In Figure 2-5, all the layers that comprise the TV set are in a group.
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig5_HTML.jpg
Figure 2-5

The layers that comprise the TV set are in a layer group

The Layer Group can be collapsed, thus hiding the layers keeping the Layers Dialog more tidy. This is done by clicking the small +/ icon next to the layer group thumbnail preview (Figure 2-6).
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig6_HTML.jpg
Figure 2-6

The layer group collapsed and the layers hidden

Layer Masks

A layer mask can be added to an active layer, allowing selective, nondestructive adjustment of the layer’s opacity (or transparency). While a layer’s opacity can be adjusted on a global (overall) level using the Opacity slider in the Layers Dialog, a layer mask allows the user to adjust opacity or transparency on selected areas with precision.

A layer mask is added by right-clicking the layer you want to add it to and selecting Add Layer Mask from the menu; you can also click the Add Layer Mask icon on the bottom of the Layers Dialog. This launches the Add Layer Mask menu where the Layer Mask properties are set (Figure 2-7).
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig7_HTML.jpg
Figure 2-7

The layer mask properties are set in the Add Layer Mask menu

The image of the yellow and purple flowers shown in Figure 2-8 contains two layers—the top layer is a duplicate of the bottom one, but it has been desaturated (color removed).
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig8_HTML.jpg
Figure 2-8

A layer mask allows selective, nondestructive adjustment of layer transparency

In this example, by adding a layer mask (initialized to white), selected areas can be made transparent by painting with black, revealing the color from the bottom layer. Painting in gray creates semitransparency, allowing some of the color to show through—the lighter the gray, the less color is revealed.

Using a layer mask offers nondestructive editing; opacity can be restored by painting with white if revisions are necessary.

Note

The layer mask must be active to work—to make the layer mask active, click the layer mask thumbnail image in the Layers Dialog.

The Layers Dialog and Layer Menus

By default, the Layers Dialog is located to the right of the Active Image Window. The layer order is displayed by thumbnail images (small preview images). The Layers Dialog contains a number of functions available for layer management (Figure 2-9).
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig9_HTML.jpg
Figure 2-9

The Layers Dialog

The Layers Dialog’s functions are as follows:

  1. 1.

    Layers Tab—Activates the Layers Dialog when clicked.

     
  2. 2.

    Mode (Blend Mode)—Selects from the 21 blend modes available (blend modes affect the way layers interact, or “blend” with each other).

     
  3. 3.

    Layer Opacity—Slider that adjusts the layer’s opacity from 0% (completely transparent) through 100% (completely opaque).

     
  4. 4.

    Lock Pixels—Prevents the use of any brush-based tool on the layer’s content, protecting it from any unwanted changes.

     
  5. 5.

    Lock Position and Size—When active, prevents the layer from being repositioned, resized, rotated, or otherwise transformed.

     
  6. 6.

    Toggle Visibility On/Off—Turns the layer visibility on or off; when toggled off, the layer is inactive and can’t be edited.

     
  7. 7.

    Link to Other Layers—Allows layers to be linked together, allowing them to be moved, resized, rotated, or transformed uniformly; a chain link icon is visible next to each linked layer thumbnail image.

     
  8. 8.

    Create a New Layer—Launches the New Layer dialog, allowing the user to set the layer parameters before adding it to the image; holding the Shift key while clicking creates a new layer with the previously used values.

     
  9. 9.

    Create a New Layer Group—Creates a Layer Group, which enables the user to group similar layers in a tree list.

     
  10. 10.

    Raise/Lower Layer One Level in Stack—Moves the active layer up or down one level each time the up or down arrow is clicked; the layer can also be moved by clicking and dragging the thumbnail image up or down in the layer stack.

     
  11. 11.

    Create a Duplicate of the Layer—Creates a duplicate of the active layer.

     
  12. 12.

    Anchor the Floating Layer—Anchors the floating selection to the layer one level below.

     
  13. 13.

    Add a Mask—Launches the Add Layer Mask menu; the parameters can be set before the mask is added to the active layer.

     
  14. 14.

    Delete Layer—Discards the active layer.

     
  15. 15.

    Switch to Another Group of Modes—Switches between the default blend modes and the legacy blend modes (used in older versions of the GNU Image Manipulation Program).

     
  16. 16.

    Lock Alpha Channel—Prevents pixels from being applied to transparent parts of the layer.

     
  17. 17.

    Layer ThumbnailA small preview image of the layer(s) in the Layers Dialog; double-clicking in the thumbnail launches the Layer Attributes menu.

     
The Layer Menu can be accessed from the Image Menu (Image Menu ➤ Layer). In Figure 2-10, you can see several of the options in the Layers Dialog are found also in this menu. In addition, there are options for managing the layer stacking order, layer mask, transparency, transforming the layer (flipping, rotating) and adjusting the boundary size, scaling, and cropping.
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig10_HTML.jpg
Figure 2-10

The Layer Menu can be accessed from the Image Menu

An additional layer menu can also be accessed by right-clicking a layer thumbnail (Figure 2-11). This menu contains options for adjusting the layer’s attributes, as well as the options found in the Layers Dialog.
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig11_HTML.jpg
Figure 2-11

Right-clicking a layer thumbnail launches the Layer Menu

An Overview of RGB Color Channels

Glimpse opens most images in the RGB color space by default—RGB stands for red, green, and blue, which are the primary colors for this color model. An RGB image is comprised of three color channels—one for each color. RGB is an additive color space , meaning that colors of each pixel result from combining various amounts of red, green, and blue light. Combining 100% of each results in white, while 0% of each results in black. Figure 2-12 shows a breakdown of each color channel and the composite image.
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig12_HTML.png
Figure 2-12

The red, green, and blue color channels combine to make a composite image

Layers are constantly used in image editing because they’re usually front and center, whereas channels are typically more “behind the scenes.” There are times editing a particular color channel may be necessary (typically done by advanced users). Glimpse can decompose an RGB image’s channels into layers that display as grayscale images for editing and better viewing of the lightness values of each channel (Figure 2-13).
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig13_HTML.png
Figure 2-13

Channels displayed in grayscale make viewing lightness values easier

The image can then be recomposed after the editing is complete. You’ll have the opportunity to do this in a tutorial coming up in a later chapter.

Alpha channels are related to pixel transparency. An alpha channel is automatically created if there is more than one layer in your image (Figure 2-14).
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig14_HTML.jpg
Figure 2-14

An alpha channel is automatically created in images with more than one layer

Selection Masks

Selections are used to isolate part (or multiple parts) of an image. Selections are characterized by a dashed animated boundary line (sometimes called marching ants) around the part of the image being isolated. We’ll take a closer look at selections and Selection Tools in Chapter 3.

It may be necessary on occasion to relaunch a selection at a later point in the editing process. For this reason, selections can be saved and stored as channels in the lower section of the Channels Dialog. When a selection is saved to a channel, it is assigned the name Selection Mask copy by default (Figure 2-15).
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig15_HTML.jpg
Figure 2-15

A selection saved to a channel in the lower part of the Channels Dialog

Note

A Selection Mask is similar to a Layer Mask in the way an overlay can be edited to isolate or protect part of an image. This allows the selection to be modified or refined by using a paintbrush tool on the selection mask. By applying black, white, or gray, the degree of transparency is controlled. A major difference is that rather than being attached to a specific layer, a Selection Mask is stored as a channel.

Selection masks can be refined using the Paintbrush Tool (Figure 2-16). With the visibility toggled on, an overlay becomes visible—the selection edge can be refined by painting with black, white, or gray (for semitransparency).
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig16_HTML.jpg
Figure 2-16

The edge refined by using the Paintbrush Tool

Double-clicking the channel thumbnail preview launches the Channel Attributes dialog, in which you can customize the channel’s name, assign color tags, adjust the fill opacity, and toggle the switches on or off (Figure 2-17).
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig17_HTML.jpg
Figure 2-17

Double-clicking the channel’s thumbnail preview launches the Channel Attributes Dialog

The Channels Dialog

As mentioned earlier in this chapter, Glimpse uses the RGB color model by default, which means that the opened color image is composed of red, green, and blue light in various amounts.

There are times (usually, advanced techniques) when editing a specific color channel is necessary, so they can be easily accessed in the Channels Dialog.

At first glance, the Channels Dialog bears a strong resemblance to the Layers Dialog and has similar options, although not quite as many (Figure 2-18).
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig18_HTML.jpg
Figure 2-18

The Channels Dialog

The Channels Dialog’s functions are as follows:
  1. 1.

    Channels Tab—Activates the Channels Dialog when clicked.

     
  2. 2.

    Toggle Visibility On/Off—Turns the channel visibility on or off; when toggled off, the image only displays the values of the active channels.

     
  3. 3.

    Color Channel Preview Thumbnails—Displays a small preview image of each color channel.

     
  4. 4.

    Alpha Channel Preview Thumbnail—Displays a small preview image of the alpha channel (like the RGB channels, the visibility can be toggled on/off).

     
  5. 5.

    Lock Pixels—Prevents the use of any brush-based tool on the selection mask’s content, protecting it from any unwanted changes.

     
  6. 6.

    Lock Position and Size—When active, prevents the selection mask from being repositioned or resized.

     
  7. 7.

    Toggle Selection Mask Visibility On/Off—Turns the Selection Mask visibility on or off.

     
  8. 8.

    Selection Mask Thumbnail—Displays a small preview image of the Selection Mask (like layers, Selection Masks can be linked together, allowing them to be moved or resized uniformly).

     
  9. 9.

    Create a New Channel—Creates a new Selection Mask.

     
  10. 10.

    Raise/Lower This Channel One Level in the Stack—Moves the active Selection Mask up or down one level each time the up or down arrow is clicked; the Selection Mask can also be moved by clicking and dragging the thumbnail image up or down in the layer stack.

     
  11. 11.

    Create a Duplicate of This Channel—Creates a duplicate of the active channel (selection mask).

     
  12. 12.

    Replace the Selection with This Channel—Adds a selection to the selection mask.

     
  13. 13.

    Delete This Channel—Discards the active selection mask.

     

An Overview of Paths

Glimpse allows the user to draw complex or irregular shapes by creating paths using the Paths Tool. Paths can be used to create illustrations or to make intricate selections (isolating portions of an image).

Figure 2-19 shows the shape of a boxing glove being created. A path is a curved line (sometimes called a Bezier curve) that can be reshaped, stroked (a color, width, or pattern applied), or converted into a selection. Paths are stored in the Paths Dialog—this offers the ability to edit the path at a later date (e.g., if the boxing glove needed to be reshaped). Instead of recreating the boxing glove illustration from scratch, the path could be edited.
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig19_HTML.jpg
Figure 2-19

A path is used to create an editable complex or irregular shape

The path is separate from the image itself, stored away until it’s ready to be converted into a selection, or filled/stroked with a color or pattern to create an illustration.

As the path is being drawn, each time the mouse button is clicked, an anchor point is placed (displayed as a small circle) along the path. The path can be reshaped by clicking and dragging a line segment. Clicking in one of the anchor points displays a direction line, allowing you to reshape the portion of the path between two anchor points (Figure 2-20).
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig20_HTML.jpg
Figure 2-20

A bend being made in a line segment by clicking and dragging; anchor points and the Direction Line shown

A selection can be added to a path when needed (Figure 2-21). The path can either be hidden by turning off the visibility or discarded if no longer needed.
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig21_HTML.jpg
Figure 2-21

A selection added to a path

The Paths Dialog

The Paths Dialog looks and functions much like the Layers or Channels Dialogs do (Figure 2-22). This dialog is essential for those who create drawings and work with paths on an ongoing basis.
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig22_HTML.jpg
Figure 2-22

The Paths Dialog looks and functions like the Layers or Channels Dialogs

The Paths Dialog’s functions are as follows:
  1. 1.

    Paths Tab—Activates the Paths Dialog when clicked.

     
  2. 2.

    Lock Path Position—Prevents the path from accidental movement.

     
  3. 3.

    Lock Path Strokes—Prevents the path from being reshaped.

     
  4. 4.

    Toggle Path Visibility On/Off—Turns the path’s visibility on or off.

     
  5. 5.

    Create a New Path—Enables you to draw a new path independent of others that are already created.

     
  6. 6.

    Raise/Lower This Path—Moves the active path up or down one level each time the up or down arrow is clicked; the path can also be moved by clicking and dragging the thumbnail image up or down in the layer stack.

     
  7. 7.

    Duplicate This Path—Creates a duplicate of the active path.

     
  8. 8.

    Path to Selection—Adds a selection to the active path.

     
  9. 9.

    Selection to Path—Creates a path from an active selection (the visibility will need to be toggled on to see the path).

     
  10. 10.

    Paint Along the Path—Applies a color or pattern to the path.

     
  11. 11.

    Delete This Path—Discards the active path.

     
  12. 12.

    Path Thumbnail Preview—Displays a small preview image of the path (like layers, paths can be linked together, allowing them to be moved or resized uniformly).

     

An Overview of Undo History

Undo History provides the means to revert to a previous point in your work. To undo one step, you can simply use the keyboard shortcut Ctrl+Z (to redo one step, use Ctrl+Y). However, it may be necessary to undo a series of operations and start over from an earlier point rather than the very beginning.

Caution

If you revert back several operations and then make even a single edit to the image, those steps are gone permanently, and you’ll essentially be working from the point that you reverted to. Examine the operations carefully and make sure you don’t need them before editing.

The Undo History Dialog

Comparatively speaking, this dialog is the least complex among those covered in this chapter (Figure 2-23).
../images/495886_1_En_2_Chapter/495886_1_En_2_Fig23_HTML.jpg
Figure 2-23

The Undo History Dialog is relatively uncomplicated

The Undo History Dialog’s functions are as follows:
  1. 1.

    Undo History Tab—Activates the Undo History Dialog when clicked.

     
  2. 2.

    Previous Operations—Displays “snapshots” of previous operations; clicking a particular thumbnail reverts to that point in history.

     
  3. 3.

    Last Operation—Thumbnail displaying the most recent operation.

     
  4. 4.

    Undo Last Operation—Reverts back one step in history.

     
  5. 5.

    Redo Last Operation—Restores the undone operation.

     
  6. 6.

    Remove All Operations from Undo History—Removes all of the previous operations from the history.

     

Chapter Conclusion

A lot of ground was covered in this chapter; we looked at layers and the related topics. We then looked at channels—both the color channels and alpha channels that contain selection masks. Next, we looked at paths and how useful they are in drawing complex or irregular shapes. The last item we looked at was Undo History.

In the next chapter, we’ll look at the tools used in Glimpse.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.21.104.109