Sub topic 8
Why stacking order matters
This chapter assumes you can open a document, find the Layers panel, and select a layer. It covers how Photoshop uses the order of layers to produce the final image. It also covers the mistakes that order causes.
The stack is a drawing instruction
The Layers panel is a list. Photoshop reads it from the bottom to the top. It draws the bottom layer first, then draws each layer above it on top of what is already there. The top layer is drawn last, so it sits in front.
Three rules follow from this:
- A layer can only affect the layers below it.
- Opaque pixels hide whatever is underneath them.
- Transparent pixels, and pixels at reduced opacity, let lower layers show through.
Each layer is blended with the combined result of everything below it. It is not blended with one neighbor at a time. This matters most for blend modes and adjustment layers.
Order changes the picture
Suppose you have a blue rectangle layer and a red circle layer. Both are Normal mode at 100% opacity. If the circle is above the rectangle, you see the whole circle, and the circle covers part of the rectangle. Swap them and the rectangle covers part of the circle. No pixel changed. Only the order changed.
Opacity makes the difference more subtle. A red layer at 50% opacity above a blue one gives a purple mix. Put the red below a blue layer at 100% opacity and the red disappears behind it.
Adjustment layers act downward only
An adjustment layer, such as Curves, Hue/Saturation, or Black & White, changes everything beneath it in the stack. It has no effect on layers above it.
| Position of a Black & White adjustment layer | Result |
|---|---|
| At the top of the stack | Every layer below becomes gray, including type and shapes |
| Directly above the photo, below the type layer | The photo is gray and the type keeps its color |
| Below the photo | No visible change, because the photo covers it |
The last row is a common error. A learner adds an adjustment, sees nothing happen, and assumes the adjustment is broken. The usual cause is that the new layer was created beneath the layer they wanted to change. Photoshop creates a new layer directly above the currently selected layer, so which layer is selected when you click the new-layer button decides where the new layer lands.
Blend modes depend on what is below
A blend mode describes how a layer's pixels combine with the pixels below it. The set of pixels below is decided by the stack, so moving a layer changes the combination.
Consider a layer set to Multiply with 60% opacity. It darkens whatever lies under it. If a bright sky layer lies under it, you get a mild darkening. If you drag the layer under a solid opaque layer, it has nothing visible to darken, and it appears to do nothing.
The same applies to Screen, Overlay, Soft Light, and the other modes. When a blend mode "stops working" after a reorder, check what is now underneath the layer.
Reordering with the mouse and the keyboard
You can reorder in two ways.
- Drag a layer up or down in the Layers panel. A thick line appears between two layers to show where the layer will land. Release when the line is where you want it.
- Use keyboard shortcuts. On Windows the shortcuts use Ctrl, and on macOS they use Cmd.
| Action | Windows | macOS |
|---|---|---|
| Bring forward one step | Ctrl+] | Cmd+] |
| Send backward one step | Ctrl+[ | Cmd+[ |
| Bring to front | Ctrl+Shift+] | Cmd+Shift+] |
| Send to back | Ctrl+Shift+[ | Cmd+Shift+[ |
Dragging is better when the target position is far away or inside a group. Shortcuts are faster for small moves, and they work on several selected layers at once.
You can also reorder with a script. In the Photoshop scripting model, doc.layers[0] is the topmost item in the Layers panel. Placing a layer before it moves the layer to the top of the stack.
// ExtendScript (.jsx): send the active layer to the top of the stack
var doc = app.activeDocument;
var layer = doc.activeLayer;
layer.move(doc.layers[0], ElementPlacement.PLACEBEFORE);If the active layer is already the top layer, the call places it before itself and nothing changes. That is harmless.
The Background layer sits at the bottom
A document's Background layer is locked in position. You cannot move other layers beneath it, and you cannot move the Background layer itself up. If you press Send to Back on a normal layer, it stops just above the Background layer.
To place something behind the Background, first convert the Background to a regular layer. Double-click it in the Layers panel and confirm the dialog. After that it behaves like any other layer, and you can move it anywhere in the stack. The tutorial covers this conversion in its own chapter.
Groups carry their position with them
A layer group is a folder in the stack. The group as a whole has a position, and the layers inside it keep their own order within the group. Moving a group up or down moves all its contents together. A layer inside a group can never end up between two layers outside the group, so grouping puts limits on reordering.
A group set to Pass Through, which is the default, lets its contents blend with the layers below the group as if the group were not there. A group set to any other blend mode first composites its contents into a single image, then blends that image with what is below. Group blend modes get a fuller treatment later. For now, remember that a group's position in the stack matters in the same way a single layer's position does.
A checklist for "why can't I see my layer?"
When a layer looks missing or an effect does not appear, check these in order:
- Is the eye icon on for the layer and for every group that contains it?
- Is a fully opaque layer above it covering the area?
- Is the layer's opacity or Fill set to 0%?
- Is an adjustment layer or blend mode now working on a different set of pixels because of a move?
- Is the layer inside a group whose blend mode or opacity changes the result?
Most stacking problems are solved by step 2 or 4.
Exercise
A document has three layers, listed top to bottom: "Title" (white type), "Photo" (a color photograph), and "Black & White" (an adjustment layer). The photo still shows in full color. What is wrong, and how do you fix it so the photo turns gray while the title stays white?
Show answer
The Black & White adjustment layer is below the photo, and an adjustment layer only affects the layers beneath it. Drag it above "Photo" and below "Title", or select "Photo" and press Ctrl+] (Cmd+] on macOS) once. The photo is then converted to gray, and the title above the adjustment keeps its white color.