- Updated
- Digerati
- Tips & Tricks
- 883
- 0
An alpha channel is a grayscale image stored inside your Photoshop document that remembers a selection. Make a selection, choose Select > Save Selection, and it is kept in the Channels panel until you need it again. Bring it back with Select > Load Selection, or Ctrl-click (Cmd-click on a Mac) the channel's thumbnail. This guide covers saving, loading, editing, combining and exporting alpha channels, a workflow for hair and foliage, and a simple rule for when a layer mask is the better tool.
What an Alpha Channel Is
Photoshop stores a saved selection as a grayscale picture. White marks the pixels that are selected, black marks the ones that are not, and the grays in between mark a partial selection. That is why a soft, feathered edge survives when you save it. The marching ants on screen are only a temporary outline and vanish when you deselect, but an alpha channel stays in the Channels panel next to Red, Green and Blue, travels with the file, and does not change how the picture looks.
Adobe describes the idea in its help page on saving and reusing selections and alpha channels, which is a handy second reference if you want the official wording.
One setting can trip you up. Double-click a channel's thumbnail and its options decide whether white stands for Selected Areas or Masked Areas. If a channel looks like the negative of what you expected, check that setting first.
Alpha Channel vs Layer Mask
Both are grayscale and follow the same black, white and gray logic, which is why people mix them up. The difference is where they live and what they do.
- A layer mask is attached to one layer. It hides or reveals that layer's pixels immediately and moves with the layer.
- An alpha channel belongs to the whole document. On its own it does nothing to the picture. It holds a selection until you load it, and then you can use it on any layer, adjustment or filter.
Think of the channel as a saved recipe and the layer mask as the finished dish. Adobe's documentation on masking layers explains how layer masks work, and our guides to advanced layer masking and clipping masks versus layer masks go deeper on the layer side.
Find the Channels Panel
Open it with Window > Channels. The composite channel (RGB in an RGB document) sits at the top, then the individual color channels, then any alpha channels. Every row has an eye icon, and small buttons along the bottom handle saving a selection as a channel and loading one back. Click the composite channel at any time to return to normal editing.
Save a Selection as an Alpha Channel
Start with any selection. A Quick Selection, a Lasso, Select > Select Subject, or a path you turned into a selection from the Pen tool all work. Then choose one of two routes.
Route 1: the menu
- Choose Select > Save Selection.
- Leave Document on the current file and Channel on a new channel, the defaults.
- Type a clear Name, such as "Sky" or "Subject Rough".
- Click OK.
Route 2: the button
With the selection active, click the Save selection as channel button at the bottom of the Channels panel. Photoshop adds a channel at once with an automatic name such as Alpha 1. Double-click the name and rename it right away, because a panel full of Alpha 1 to Alpha 6 tells you nothing a week later.
Load a Saved Selection Back
There are three ways to bring a saved selection back.
- Click to load: in the Channels panel, hold Ctrl (Windows) or Cmd (Mac) and click the alpha channel's thumbnail. The marching ants appear straight away.
- Menu: choose Select > Load Selection, pick the channel and click OK. The Invert checkbox loads the opposite area, handy when you saved the subject but want the background.
- Button: select the alpha channel, click the Load channel as selection button at the bottom of the panel, then click the composite channel to go back to the color image.
The marching ants trace the 50 percent line of the channel. Where gray fades out softly, pixels beyond the outline are still partly selected, so judge soft edges by the result, not the ants.
To use a channel from another file, open both documents, make the destination active, and choose Select > Load Selection with the Document menu pointing at the other file. Keep the pixel dimensions identical, because Adobe's Save Selection and Duplicate Channel dialogs only list open documents that match.
Refine an Alpha Channel
A channel is just a grayscale image, so ordinary tools work on it. Click the channel in the Channels panel and the document window switches to its grayscale view. Turn on the eye icon beside the composite channel as well to see it as a tinted overlay on your photo. Only one channel can be painted on at a time, so check the right one is active.
- Brush: paint white to add to the selection, black to remove from it, and gray for a partial effect. A soft, low-opacity brush builds gentle transitions.
- Levels: with the channel active, choose Image > Adjustments > Levels and drag the black and white input sliders toward the middle. Grays collapse toward pure black and white, which firms up a weak edge.
- Curves: Image > Adjustments > Curves does the same job with more control. A gentle S-curve raises contrast but keeps some gray in fine detail.
- Blur: if the edge looks jagged, apply a small Filter > Blur > Gaussian Blur to the channel, then tighten it with Levels. Keep the radius small.
Before you experiment, duplicate the channel with the Duplicate Channel command in the Channels panel menu, where you can also tick Invert. Keeping versions such as "Sky Soft" and "Sky Hard" lets you pick the right edge for each job.
Combine Saved Selections
Saved channels let you do arithmetic with selections. When a selection is already active, the Load Selection dialog offers four operations, and the Channels panel has a click shortcut for each.
| Goal | Load Selection operation | Click in the Channels panel (Windows / Mac) |
|---|---|---|
| Replace the current selection | New Selection | Ctrl-click / Cmd-click |
| Add the channel | Add to Selection | Ctrl+Shift-click / Cmd+Shift-click |
| Cut the channel away | Subtract from Selection | Ctrl+Alt-click / Cmd+Option-click |
| Keep only the overlap | Intersect with Selection | Ctrl+Shift+Alt-click / Cmd+Shift+Option-click |
For example, load a "Sky" channel, then subtract a "Building Edge" channel so the sky stops cleanly at the roofline. You can also combine at save time: when you save into an existing channel, the Save Selection dialog offers Replace Channel, Add to Channel, Subtract from Channel and Intersect with Channel. Replace Channel overwrites what was there, so use it with care.
Saved channels pair well with luminosity masks. Store a highlights selection as a channel, then intersect it with a sky channel to affect only the bright parts of the clouds.
Where Saved Selections Pay Off
- Skies: a horizon full of trees or wires is slow to select. Save it once and reuse it through every revision of a sky replacement.
- Fine edges: save your progress on hair or branches so you can refine over several sessions, then use it in realistic photo compositing.
- Adjustments: load a channel before adding a Curves layer and the selection becomes that layer's mask, as in targeted color correction.
- Smart filters: load a channel into a filter mask to limit a blur to one area, as covered in masking Smart Objects.
Keep Your Channels When You Save the File
Alpha channels only survive in formats that support them. Adobe lists Photoshop (PSD), Photoshop Large Document Format (PSB), TIFF, PDF and Raw as the formats that keep them. Save as JPEG or PNG and they are dropped, along with every selection you spent time on. DCS 2.0 keeps spot channels but not alpha channels.
- Work in a layered PSD, and in the Save As dialog make sure the Alpha Channels option is ticked.
- Treat that PSD as your master. Export JPEG or PNG copies for delivery, and never overwrite the master with them.
- Channels add to file size, and a document can hold up to 56 channels in total, color channels included. Delete the ones you no longer need before archiving.
A Practical Workflow for Hair and Foliage
Fine, wispy edges are where a standard selection gives up. A channel-based approach keeps the gray values, so it copes better.
- Rough it out. Make a first selection with Select > Select Subject or the Quick Selection tool and save it as "Subject Rough", your safety net.
- Find the best channel. Click Red, Green and Blue in turn and look for the one where the hair or leaves separate most clearly from the background.
- Duplicate it. Use Duplicate Channel from the panel menu and name the copy "Edge". Never edit the original color channel.
- Push the contrast. Use Levels or Curves so the background goes toward one extreme and the hair toward the other. If the subject ends up black, tick Invert in the Duplicate Channel dialog. Stop before the fine strands turn into hard shapes.
- Clean the solid areas. Paint the body of the subject solid white and the clear background solid black with a hard brush. Only the fringe should keep its gray.
- Limit the damage. Load "Edge", then intersect it with "Subject Rough" so the fringe only applies around the subject.
- Save and mask. Save the combined result as a new channel called "Subject Final", then turn it into a layer mask as described in the next section.
Zoom to 100 percent and check the subject on its new background. Leftover color fringing is common, and you can paint it away on the layer mask without touching your channels.
Turn a Channel into a Layer Mask
- Ctrl-click (Cmd-click) the alpha channel's thumbnail to load it as a selection.
- Click the composite channel, then select the layer you want to mask in the Layers panel.
- Click the Add layer mask button at the bottom of the Layers panel, or choose Layer > Layer Mask > Reveal Selection.
To hide the selected area instead of revealing it, Alt-click (Option-click) the same button or choose Layer > Layer Mask > Hide Selection. The channel's gray values carry over as soft edges. The alpha channel stays in the document, so if you ruin the mask while painting you can generate a fresh one in seconds.
Common Mistakes
- Exporting to JPEG or PNG and expecting the channels to survive. They will not. Keep the PSD or TIFF.
- Painting on the wrong target. After editing a channel, click the composite channel again, or your next brush stroke lands in the channel instead of on your layer.
- Reading black and white backward. Check Masked Areas and Selected Areas in Channel Options if a channel looks inverted.
- Overwriting a good channel. Replace Channel in the Save Selection dialog replaces what was there. Duplicate before you experiment.
- Trusting the marching ants. They show only the 50 percent boundary of a soft selection.
- Leaving channels unnamed or piling them up. Alpha 1, Alpha 2 and Alpha 3 are guesswork a month later, and every channel adds to the file size.
When a Layer Mask Is the Better Choice
Reach for a plain layer mask when the selection belongs to one layer only and nothing else will need it. A layer mask hides pixels right away, can be painted in place, and travels with the layer if you move it into another document. For a simple cutout on a single layer, a saved channel is one more object to manage for no benefit.
Choose an alpha channel when the same selection will be used more than once, when several layers or adjustments need it, or when you want to combine it with other selections. It also suits long-running work, such as hair or foliage, where you will come back to refine the edge. Many editors use both: the channel is the master, and each layer gets its own mask generated from it.
Name your channels, keep a layered master with them intact, and load the selection whenever a layer needs it.
Comments (0)