10. Creating Layer and Channel Masks

Introduction

When you work on documents in Adobe Photoshop, the application does its best to make the experience as similar to the real world as possible. When you select the Brush tool and drag within the document, you expect to see a swath of color using the preselected size and brush tip. That’s what you expect to see when you drag a brush on a canvas, and that’s what you see in Photoshop. Creating a realistic experience is what Photoshop is all about. Yet, as realistic as the Photoshop experience is, there are elements of digital design that go way beyond the real world. For example, Photoshop has an undo button; the real world does not. Layer masks, for example, give you the ability to remove elements of a layer without actually erasing the image pixels. Layer masks give you ultimate control over your Photoshop design by deciding what elements of an image are visible, and making changes to the image without destroying any pixels. In addition, layer masks are editable, which means you can change your mind at any time during the creative process.

Imagine creating a complicated selection in Photoshop. Selections are temporary; they last only as long as your document is open. But what if you want to save this selection for use later in the design? What you need is a channel mask. Channel masks hold simple, or complicated selections, and can be saved with the document. Channel masks are created from preexisting selections, or can be created from scratch by painting the mask with black, white, or shades of gray. The process of creating a Channel mask is simple, but the results are powerful.

Understanding the Role of Layer Masks

Understanding the Role of Layer Masks

PS 5.1, 5.4

Layer masks are not new; however, Photoshop designers find new ways to use them every day. A layer mask is an attachment to a layer that defines the visible elements of the layer. Each layer type in Photoshop, with the exception of the Background, has the ability to hold a layer mask. Imagine a layer mask as a piece of paper on top of the image. Then take a trimming blade and cut holes in the paper. The holes in the paper represent the visible area of the image underneath the mask, while the rest of the paper (layer mask) hides the rest of the image. Each layer in a multi-layered document can have its own mask; the mask only influences the image elements of the layer to which it’s attached. Once a mask is created, it can be modified using any of Photoshop’s painting or drawing tools. Black represents transparent (invisible) elements, and white represents visible elements. Painting with a shade of gray introduces a variable level of transparency. For example, painting with 50% gray makes the image pixels appear 50% transparent.

Understanding the Role of Layer Masks

Creating a Layer Mask

Creating a Layer Mask

PS 5.2

The creation of a layer mask requires two things: an open document and any type of Photoshop layer with the exception of the Background. When you add a layer mask, you will be working with two layer elements—the image and the mask. It’s important to know which element you’re working on or you might wind up painting on the image instead of the mask. When that occurs, it’s good to remember the Undo button. Once the mask is created, you can selectively control, without erasing, the visible portions of the image.

Create a Layer Mask

Image Open a document.

Image Click the Layers panel.

Image Click the layer that will contain the mask.

Image Click the Add Layer Mask button.

Image

Image Click on the image thumbnail to modify or adjust the image.

The active pointer resembles a hand with a pointing finger.

Image Click on the mask thumbnail to modify or paint on the mask.

Image Click the link button to separate the mask from the image. Control the opacity (density) of the mask and adjust the edge by using the sliders on the Masks panel (New!). You can also access the Color Range command from this panel, delete/invert the mask or load a mask selection.

Image Click the link button again to reestablish the connection between the mask and the image.

Image Shift+click on the mask thumbnail to disable or enable the mask, or click on the Disable/Enable Mask button in the Masks panel (New!).

Image

Image Alt+click (Win) or Option+click (Mac) on the mask thumbnail to view or hide the mask in the document window.

Working with the Paint Tools

Working with the Paint Tools

PS 5.2

Unless a mask is created using a selection, layer masks begin their lives as completely white. The reason a newly created layer mask does not appear to have any visible effect on the image is that the color white indicates visible areas of the image. It’s only when you begin painting on the mask that the image changes. You create transparency in the image by painting in shades of gray. The deeper the shade of gray, the more transparent the image. Painting the mask with pure black produces 100% image transparency. Any of Photoshop’s drawing or painting tools can be used to create a mask. In fact, you could even use the Custom Shape drawing tools and create a mask in the shape of a rubber duck. The trick is to use the right tools to create the right effect. For example, using a hard-edged brush creates an image with sharp edges and using a soft-edged brush creates an image where the visible edges of the image blend smoothly with transparent elements.

Work with the Paint Tools

Image Open a document.

Image Create a layer mask on one of the active image layers.

Image Click the layer mask thumbnail.

Image Select the Brush tool and brush tip.

Image Move into the document window and paint with black to create transparency.

Work with the Paint Tools

Image Use white to touch up the image.

Image Use shades of gray to create partial transparency.

See Also

See “Working with the Brush and Airbrush Tools” on page 214 for more information on using the Brush tool.

See Also

Using Selections to Generate Complex Layer Masks

Image

PS 5.2, 5.6

Layer masks are easy to create; you select a layer and then click the Add Layer Mask button. Unfortunately, when you create a mask this way, it’s up to you to define the transparent areas, using drawing or painting tools. There is another way to generate a mask, and that’s by making a selection first. When you click the Add Layer Mask button, Photoshop searches the document for any selected areas. If it doesn’t find any, it creates a blank (all white) mask. However, if you first select an area of the image, Photoshop interprets the selection as the area you want to remain visible.

Use Selections to Generate Masks

Image Open a document.

Image Select the areas of the image you want to preserve.

Image Click the Add Layer Mask button.

Photoshop generates a layer mask based entirely on your selection.

Image
Image

Did You Know?

You can apply layer styles to a masked image.Create the mask, and then click the Add Layer Style button, located at the bottom of the Layers panel. Then use any of Photoshop’s layer styles, such as Drop Shadow, or Bevel and Emboss. The layer style will only be applied to the visible portion of the image.

See Also

See Chapter 4, “Mastering the Art of Selection,” on page 77 for information on selecting areas of an image using different tools.

Using Layer Masks to Generate Soft Transparency

Image

PS 5.2

When you create a layer mask using Photoshop’s selection tools, the edges of the image where transparency occurs appear as if cut out with a knife. This occurs because selection tools create hard-edged selections, and then, when you create the layer mask, the edges appear as ragged as the mask. To soften the edge of the selection boundary, you can use the Feather option in the Refine Edge dialog box, which can also be accessed from the Masks panel by clicking on the Mask Edge button (New!). As you adjust the Feather value, the feather effect appears in the Document window with a preview of the image. When you create the layer mask, the edges appear soft and feathered.

Use Layer Masks for Transparency

Image Open a document.

Image Create a selection around the area you want to preserve.

Image Click the Select menu, and then click Refine Edge.

Image Drag the slider to select a Feather Radius value (1 to 250). The greater the value, the greater the feathering effect.

Image Click OK.

Image

Image Click the Add Layer Mask button.

The layer mask uses the Feather option to soften the visual effect of the mask.

Use Layer Masks for Transparency

Did You Know?

You can also use Gaussian Blur to create a soft transparency.Another way to create a soft edge is to create a hard-edged mask from a selection, and then visually create a softer mask using a filter named Gaussian Blur.

See Also

See Chapter 14, “Manipulating Images with Filters,” on page 319 for more information on using filters.

Blending Images with Layer Masks

Blending Images with Layer Masks

PS 5.2

You can use layer masks to make areas of an image appear transparent by painting with black. Then just as quickly, you can make those areas reappear by painting with white. There are obvious applications to the use of layer masks—changing a sky, removing a tree, or even removing a person from the photo. For example, you have a line art image and you want to change it to a normal photograph. To accomplish this, you’ll need a copy of the image in a separate layer, a layer mask, and the linear gradient tool.

Blend Images with Layer Masks

Image Open a document.

Image Select the layer you want to use for the effect in the Layers panel. If this is a multi-layered document, this layer should be at the top of the layer stack.

Image Drag the layer over the Create New Layer button to make a copy.

Timesaver

If making a copy of a layer is a common practice, press Ctrl+J (Win) or Image (Mac).

Image Click the Add Layer Mask button, and then add a layer mask to the layer copy.

Image Use any of Photoshop’s adjustment or filter effects to make changes to the layer copy.

Image

Image Select black and white for the default foreground and background colors.

Image Select the Gradient tool, and then select a linear gradient using the foreground to background gradient option.

Image Click the layer mask thumbnail in the copy layer.

Image Drag the Gradient tool across the document, left to right.

The image slowly becomes transparent from left to right, exposing the original image.

Image

Using a Layer Mask to Create a Vignette

Using a Layer Mask to Create a Vignette

PS 5.2

When you open a document in Photoshop, the image is displayed in a standard bounding-box format—a square or rectangle with 90-degree corners. Bounding boxes serve a purpose, and many times a nice square or rectangle box is exactly what you want. But let’s face it, bounding boxes can be a bit boring, especially when you want to spice up that image with a nice soft vignette. To create a soft vignette, you need four things—an image, a selection, a layer mask, and the Gaussian Blur filter.

Create a Vignette

Image Open a document.

Image Select the Elliptical Marquee tool, and then create an oval selection in the document. The Ellipse should contain the area you want to preserve.

Image

Image Click the Add Layer Mask button in the Layers panel.

Image Click the layer mask thumbnail.

Image Click the Filter menu, point to Blur, and then click Gaussian Blur.

Image Drag the Radius slider right or left to increase or decrease the amount of blur applied to the mask.

Image Select the Preview check box, and then watch the live preview until you are satisfied with the amount of blurring applied to the layer mask.

Image Click OK.

Image
Image

Creating Unique Layer Mask Borders

Creating Unique Layer Mask Borders

PS 5.2

Layer masks can create more than simple vignettes around an image. In fact, with the right filters you can create some very interesting and fun-looking borders. For example, when you create a selection using one of Photoshop’s standard selection tools—rectangle, ellipse, or lasso—the selection has a sharp, definable border. The secret to creating unique borders is to create a general selection around a portion of the image you want to preserve, create the layer mask, and then use some of Photoshop’s creative filter effects, such as the Artistic or Distort filters on the mask. Using filters on the image mask creates eye-catching borders and it’s only a filter away.

Create a Layer Mask Border

Image Open a document.

Image Click the layer in the Layers panel to which you want to apply a unique border.

Image Create a rectangular selection around a portion of the image.

Image Click the Add Layer Mask button.

Image Click the layer mask thumbnail.

Image

Image Click the Filter menu, point to Brush Strokes, and then click the Sprayed Strokes filter.

Create a Layer Mask Border

Image Adjust the filter options to change the edge of the layer mask.

Image Click OK.

Did You Know?

You can apply more than one filter to a layer mask border.For example, using the Spatter filter creates a ragged edge to the layer mask. Applying a small amount of Gaussian Blur to the mask softens the effect and creates a more pleasing visual transition between the mask and the background.

Understanding Channel Masks

Understanding Channel Masks

PS 5.1

The Channels panel serves three purposes—to hold color information, to hold spot color information, and to hold selections (channel masks). Creating channel masks can be as easy as clicking the Create New Channel button and then using any painting or drawing tools to create the mask, or by making a selection and converting the selection into a mask by clicking the Save Selection As Channel button. When you paint the channel mask, the defaults are—black for masked areas, white for selected areas, and shades of gray for percentages of selection.

Use Channel Masks

Image Open an image and create a selection.

Image

Image Select the Channels panel.

Image Click the Create New Channel button.

Image Select the new channel.

Image

Image Select the Brush tool on the toolbox, and then select a brush tip on the Options bar.

Image Paint areas of the mask white to create a selection.

Image Paint areas of the mask black to mask the image.

Image

Did You Know?

You can quickly convert a channel mask into a selection.To view a channel mask as a selection, open the Channels panel, and then Ctrl+click (Win) or Image (Mac) on the channel. Photoshop instantly translates the black, white, and gray areas of the mask into a visible selection in the document window.

Creating Channel Masks from Scratch

Creating Channel Masks from Scratch

PS 5.3

Channel masks are easy to create and once created, are just as easy to modify. All you need is an open document, and access to the Channels panel. After selecting a painting or drawing tool, you paint on the mask to define the selection area. The problem is you can’t see the image; you can only see the mask. What you need is the ability to view the mask and the image at the same time, as if you were using tracing paper, and then use the drawing tools to paint (trace) the portions of the image you want to select. The secret to viewing the image as you create the mask is to temporarily enable or show, the composite channel. In fact, the composite channel acts like a toggle switch—when it’s visible, you see the image and the mask (tracing paper); when it’s hidden, you only see the mask.

Create Channel Masks

Image Open an image.

Image Select the Channels panel.

Image Click the Create New Channel button.

Image Click the Show/Hide button on the composite channel. The image is revealed in the document window (the new Alpha channel should still be selected). You will use the image to guide the creation of the mask.

Image

Image Select the Brush tool on the toolbox.

Image Paint areas of the image using white to create a selection (painting with white exposes the original image).

Image

Image Paint areas of the image black to mask the image (painting with black masks the image with the default color of red).

Image Click the Show/Hide button on the composite channel. The image is hidden, revealing just the mask.

Image
Image

Image Repeat steps 6-8 until the mask is complete.

Modifying Channel Mask Options

Modifying Channel Mask Options

PS 5.3

Channel masks have default options that control how the mask looks and functions. Photoshop gives you the ability to change the default options of a channel mask. For example, you could change the default color from red to blue, or you could change the function of the channel mask from Selection to Spot Color. Knowing you can change the mask options gives you more control over the final results.

Modify Channel Mask Options

Image Open a document.

Image

Image Select the Channels panel.

Image Click the Channels Options button, and then click New Channel.

Image

Image Enter a name for the new channel.

Image Click the option to define the mask color as the Masked Areas, Selected Areas, or Spot Color.

Image Click the Color box, and then select a color from the Color Picker.

Image Enter an Opacity percentage value (1% to 100%) for the color.

Image Click OK.

Image

Did You Know?

You can change the Channel options for a preexisting channel.Double-click on the channel, and Photoshop will open the Channel options dialog box.

You can set Channel options for each channel.Changing the Channel options only impacts that specific channel. Each channel can have its own individual settings.

Creating Channel Masks from Selections

Creating Channel Masks from Selections

PS 3.2, 5.3, 5.6

Creating channel masks from scratch (using brush and drawing tools) is a useful feature, and gives you the ability to create a mask in any desired size or shape. However, there are times when it would be easier to first define the areas you want to protect, and then create the mask. When you create a channel mask from an existing selection, Photoshop uses the selected areas to create the mask. For example, you have an image of a woman wearing a red dress, and you want to change the color of the dress to green. The first step would be to select the red dress. Rather than create a new mask, and paint out the area representing the dress, it would be easier to first use a tool like the Magic Wand, select the dress, and then convert the selected area (the dress) into a channel mask. Once the mask is created, you could fine-tune the mask using Photoshop’s painting tools, and then change the dress color. Whether you create a mask from scratch or choose to create one through a predefined selection depends on the image and what you’re trying to accomplish.

Create Channel Masks from Selections

Image Open a document.

Image
Create Channel Masks from Selections

Image Create a selection using any of Photoshop’s traditional selection tools.

Image Select the Channels panel.

Image Click the Save Selection As Channel button.

Photoshop creates a new channel mask based on the selected areas of the document.

Image

Making Channel Masks from Native Color Channels

Image

PS 5.3

Creating a channel mask from a native color channel takes a few steps; however, if you’re successful, the effort spent making the selection is well worth it. The trick to creating a mask with a native color channel is to use the shifts of gray in one specific color channel to create the black and white areas characteristic of a typical channel mask. For example, you have an image of a model, and you want to remove the model from the background. Unfortunately, that requires selecting around the model’s hair, a difficult thing to accomplish, even in the best of circumstances. To make the channel mask, open the Channels panel and examine the native color channels, one at a time. You’re looking for a color channel that displays a significant shift of gray (amount of contrast) between the model’s hair and the background. For example, you click on the red channel of an RGB image and the model’s hair appears dark gray, while the background appears light gray. The difference is so pronounced you can actually see individual strands of hair standing out against the background. If you can find such a contrast, you can quickly make a channel mask.

Make Channel Masks from Native Color Channels

Image Open a document.

Image

Image Click the Channels panel.

Image Click and view the individual native color channels one at a time.

Image Click the channel that best represents a visual difference between what you want to select and what you want to mask.

Image Drag the selected channel over the Create New Channel button.

Photoshop makes a copy of the selected native color channel.

Image Click the native color channel copy.

Image

Image Click the Image menu, point to Adjustments, and then click Threshold.

Image Move the Threshold slider left or right until you see a sharp black and white image with the black and white representing the selected and masked areas of the image.

Image Click OK.

Make Channel Masks from Native Color Channels

Image Use Photoshop’s painting tools with black and white to touch up the new mask.

Image

Did You Know?

You can use native color channel masks to perform image correction.Channel masks created from native color channels can be used for more than creating a mask. For example, you have a photo where the shadow portions of the image are too dark. Correct the problem by creating a channel mask that selects just the darker portions of the image, and then use the mask to control the Levels or Curves adjustments to lighten the overexposed areas of the image.

Loading Channel Masks

Loading Channel Masks

PS 3.2, 5.3

Once you create a channel mask (and you can have up to 28 separate masks in one document), the next step is to use the masks. To save the channel mask all you have to do is save the document in a format that supports channels, such as Photoshop’s native PSD format, or even the TIFF format. The next time you open the document, your channel masks will be there. Deleting a channel mask is simple; just drag the channel mask over the Delete button located at the bottom of the Channels panel, or select the channel mask you want to delete, and click the Delete button. However, sooner or later, you’re going to want to do more than just save or delete—you’re going to want to use a channel mask. Using a channel mask involves a process of converting the mask back into a selection. It’s an easy step, but necessary to complete the process from mask to selection.

Load Channel Masks

Image Open a document that contains a channel mask, or create a new channel mask.

Image

Image Click the Select menu, and then click Load Selection.

Image If more than one document is open, click the Document list arrow, and then select the document you want to use.

Image Click the Channel list arrow, and then click the channel you want to convert into a selection (native color channels do not appear in this list).

Image Select the Invert check box to instruct Photoshop to use the black areas of the mask (instead of the white areas) for the selection.

Load Channel Masks

Image Select the Operation option you want to perform:

Image  New Selection.Creates a new selection.

Image  Add To Selection.Adds the channel mask to an existing selection.

Image  Subtract From Selection.Uses the channel mask to subtract from an existing selection.

Image  Intersect With Selection.Uses the channel mask to intersect with an existing selection.

Image Click OK.

Intersect With Selection.

Moving Channel Masks Between Documents

Moving Channel Masks Between Documents

PS 5.3

Once you create a channel mask in one document, it is possible to move that channel mask to another document. While most channel masks are so specific to a particular document it wouldn’t be practical to move them—a channel mask defining a selection of a specific tree against a blue sky, for example—many channel masks can be used over and over again. For example, you might have a series of channel masks creating unique selection borders around an image. You spent a lot of time creating the borders, and you would like to apply those same border selections to other images. If that’s the case, then increase your efficiency by saving them as channel masks and moving them between documents. Not only will it save you a lot of time, but using selections more than once can add a sense of cohesiveness to a design.

Move Channel Masks Between Documents

Image Open a document that contains a channel mask.

Image

Image Open a second document (this is the document you will move the mask into).

Image Position the two document windows side by side.

Image Click the document containing the channel mask.

Image Select the Channels panel.

Image Drag the channel mask from the Channels panel into the open document window of the second document.

Image

Combining Channel Masks

Combining Channel Masks

PS 5.3

Channel masks are simply selections defined by black, white, and shades of gray. Once a channel mask is placed in the Channels panel, you can use Photoshop’s vast array of drawing and painting tools or filters. The Gaussian Blur filter can make a great enhancement to a channel mask. It’s even possible to combine the selection elements of two or more channels together, and in doing so, create an even more complicated mask.

Combine Channel Masks

Image Open a document that contains two or more channel masks.

Image Click the Channels panel.

Image Press Ctrl+click (Win) or Image (Mac) on one of the channel masks.

The white areas of the channel become a selection.

Image Press Shift+Ctrl+click (Win) or Shift+Image (Mac) on the second channel mask.

Image

The white areas of the second channel mask are added to the previous selection.

Image Click the Save Selection As Channel button.

Photoshop takes the combined areas of the two channels and creates a new channel mask.

Image

Using the Quick Mask Mode

Using the Quick Mask Mode

PS 5.6

Quick Mask mode gives you the ability to create a selection using painting and drawing tools without creating a channel mask. For example, you’re creating a selection using traditional selection tools and there’s a portion of the image you’re having difficulty selecting. Since this is a one-time selection, you don’t want to go to the trouble of creating a channel mask. The solution is to move into the Quick Mask mode. Quick Mask mode toggles between a normal (Standard) selection view and a Quick Mask view. When you enter Quick Mask mode, any preexisting selections are converted into a red mask, and changes to the mask are performed using painting tools. When you return to Standard mode, the masked (painted) areas are converted into a selection. While Quick Masks are created the same way as channel masks, they’re temporary. It’s a quick way to create a one-time selection.

Use the Quick Mask Mode

Image Open a document.

Image Create a selection using any of Photoshop’s selection tools.

Image

Image Click the Edit in Quick Mask Mode button to convert the selection into a red overlay mask (the button toggles to Standard mode).

Image Select the Brush tool.

Image Paint with white to open up more selection areas.

Image Paint with black to mask the image; the mask, by default, is red.

Image Click the Edit in Standard Mode button again to return to a standard selection (the button toggles to Quick Mask mode).

Image

Image Toggle between Quick Mask and Standard modes until you create the perfect selection.

Did You Know?

You can convert a Quick Mask into a permanent Channel mask.Create the Quick Mask, return to Standard Mode, select the Channels panel, and then click the Create Channel From Selection button.

Working with Quick Mask Options

Working with Quick Mask Options

PS 5.6

When you work in the Quick Mask mode, the color for the mask is red, the opacity of the mask is 50%, and the red mask represents the masked areas of the document. Photoshop uses these Quick Mask options as the default, but they can be modified. For example, it would be very difficult to view a red mask if you were working on a primarily red image, or you might want to increase or decrease the opacity of the mask. Photoshop lets you do this through Quick Mask options.

Work with Quick Mask Options

Image Click the Edit in Quick Mask Mode or Edit in Standard Mode button (the button toggles between Quick Mask mode and Standard mode).

Image

Image Click the Masked Areas or Selected Areas option to instruct Photoshop whether to create a mask or a selection from the color areas of the mask.

Image Click the Color box, and then select a color from the Color Picker.

Image Enter an Opacity percentage value (0% to 100%).

Image Click OK.

Important

Quick Mask options are program specific, not document specific. The changes made to the Quick Mask options remain set until you change them.

Image

Did You Know?

Once you’ve created a Quick Mask selection, you can save it as a permanent Channel mask.Just return the screen to Standard mode, open the Channels panel, and then click the Save Selection As Channel button.

Modifying Selections with Quick Mask Mode

Modifying Selections with Quick Mask Mode

PS 5.6

Photoshop represents an active selection using an animated, single-pixel wide marquee, sometimes referred to as a “marching ant” marquee. Typically, the enclosed or “marquee” area represents the working area of the document. Unfortunately, when selections become complicated, you could wind up with ants marching all over the screen. While complicated selections are a part of the Photoshop designer’s life, they shouldn’t have to be hard to visualize or modify. Photoshop knows this and created the Quick Mask option. When you’re using Quick Mask, Photoshop displays the selected areas with a user-defined color and opacity. Then, by using your painting tools, you can make quick work of modifying the selection.

Modify Selections with Quick Mask Mode

Image Create a selection using any of Photoshop’s selection tools.

Image

Image Click the Default Colors button to default your foreground and background painting colors to black and white.

Image Click the Edit in Quick Mask button to enter Quick Mask mode.

By default the selected area remains clear and the unselected area becomes masked with a 50% red.

Image Select the Brush tool on the toolbox.

Image Refine the selection by painting on the Quick Mask with white and/or black. In Quick Mask mode, painting with black masks the image using a 50% opacity red, and painting with white reveals the original image.

Modify Selections with Quick Mask Mode

Image Click the Edit in Standard Mode button to revert the image back to a normal selection marquee.

Image

Image Continue to toggle back and forth between Edit in Quick Mask and Edit in Standard Mode until you achieve the desired selection.

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

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