Sub topic 2
Creating and Editing Adjustment Layers
This chapter assumes you can navigate the Photoshop interface, work with the Layers panel, and understand that an RGB image stores red, green, and blue values for every pixel. The previous chapter explained why non-destructive editing matters. This chapter shows how to create adjustment layers and edit them reliably.
What an adjustment layer is
An adjustment layer is a layer that stores the settings of an adjustment (for example, a Levels setting or a Curves shape) instead of changed pixels. Photoshop applies those settings to every visible layer below it, in real time, when it draws the image. The original pixels are never rewritten.
Every adjustment layer has three parts:
- Settings. The numbers or curve shape you chose, kept in the Properties panel.
- A layer mask. A built-in grayscale image that controls where the adjustment applies. It starts fully white, which means "apply everywhere". Later chapters cover masks in detail.
- Layer properties. Opacity, blend mode, and visibility, like any other layer.
Because the settings are only stored, you can reopen them, change them, hide them, or delete the layer. The image below it returns to its original state.
Creating an adjustment layer
You can create one in three ways. All three produce the same kind of layer.
- Adjustments panel. Choose Window > Adjustments. The panel shows a grid of icons. Click one, such as Levels, Curves, or Hue/Saturation.
- Layers panel button. Click the half-filled circle icon at the bottom of the Layers panel and pick an adjustment from the menu.
- Menu. Choose Layer > New Adjustment Layer > and pick an adjustment. This opens a dialog where you can name the layer, set a color label, and choose a blend mode and opacity before the layer is created.
Note the difference from Image > Adjustments. The commands in that menu apply the change directly to the pixels of the selected layer. That is destructive. Always use the Layer menu, the Layers panel button, or the Adjustments panel.
Where the new layer lands
A new adjustment layer is inserted directly above the layer that is currently selected in the Layers panel. This matters, because an adjustment only affects what is below it. If you select the bottom layer and add an adjustment, it sits above that layer and affects it. If you select the top layer, the adjustment affects the whole stack.
If a layer ends up in the wrong place, drag it up or down in the Layers panel. Moving it changes which layers it affects.
The Properties panel
When you create an adjustment layer, the Properties panel opens with that adjustment's controls. If it is closed, choose Window > Properties, or double-click the adjustment layer's thumbnail in the Layers panel.
The panel has two parts you use all the time:
- The adjustment controls at the top. For Levels these are the histogram and sliders. For Curves they are the curve graph. For Hue/Saturation they are the Hue, Saturation, and Lightness sliders.
- The row of buttons at the bottom. These control how the layer behaves, as described in the table below.
| Button | What it does |
|---|---|
| Clip to layer | Restricts the adjustment to the single layer directly below it. Covered in a later chapter. |
| Eye with arrow (View previous state) | Press and hold to see the image as it looked before your latest edits in this session of the panel. |
| Reset | Returns the controls to their default values. |
| Eye (Toggle visibility) | Turns the adjustment on or off, so you can compare before and after. |
| Trash can | Deletes the adjustment layer. |
The Properties panel also has a Masks section for the layer mask (density and feather). You will use it when you limit an adjustment.
Editing an adjustment later
Editing is the main benefit of this layer type. To change a saved adjustment, select the adjustment layer and look at the Properties panel, or double-click its thumbnail. The controls show exactly the values you left, and any change takes effect immediately.
You can also edit the layer around the settings:
- Opacity. Lower the layer's opacity in the Layers panel to weaken the effect. At 50%, the result is a blend of the original and the full adjustment.
- Blend mode. Changing the mode alters how the adjustment combines with the image below. For example, a Curves layer set to Luminosity changes brightness without shifting color. Blend modes are covered fully in a later chapter.
- Visibility. Click the eye icon next to the layer to hide it. This is the quickest way to compare before and after.
- Name. Double-click the layer name and type something descriptive, such as "Contrast curve" or "Warm up skin". With a dozen adjustments, good names save time.
Remember that the adjustment layer can be saved in a PSD or TIFF file with layers. If you flatten the image, or export to JPEG, the adjustments are baked into the pixels and can no longer be edited. Keep a layered master file.
What happens under the hood
An adjustment is a function that maps an input value to an output value for each pixel. A Levels adjustment is a mathematical remapping with a few parameters. The adjustment layer is simply those parameters, saved alongside the file. The function below mimics a Levels adjustment on one 8-bit channel value (0 to 255).
def levels(value, in_black=0, in_white=255, gamma=1.0, out_black=0, out_white=255):
"""Map one 8-bit channel value the way a Levels adjustment does."""
t = (value - in_black) / (in_white - in_black)
t = min(max(t, 0.0), 1.0) # clip below the black point and above the white point
t = t ** (1.0 / gamma) # gamma > 1 brightens midtones, gamma < 1 darkens them
return round(out_black + t * (out_white - out_black))
original = 100
print(levels(original, in_black=20, in_white=220, gamma=1.2)) # edited result
print(original) # source value is unchangedThe original variable stays at 100, and the function returns a new number. That is the idea behind an adjustment layer. The source pixel value is untouched, and the displayed value is computed from it plus the stored parameters. Change a parameter later and the display is recomputed from the same original.
This also explains two practical facts:
- Order matters. Photoshop runs adjustments from the bottom of the stack upward. The output of one becomes the input of the next. Swapping two layers can change the result.
- Rounding adds up. Because each adjustment outputs 8-bit integers in 8-bit documents, heavy edits can cause banding (visible steps in smooth gradients). Working in 16-bit mode (Image > Mode > 16 Bits/Channel) gives each channel far more steps and reduces this risk.
Common errors and how to fix them
| Symptom | Likely cause | Fix |
|---|---|---|
| Nothing changes when you move sliders | The layer's visibility is off, or the mask is filled with black | Turn on the eye icon. Check the mask thumbnail. A black mask hides the whole adjustment. Fill it with white. |
| The adjustment affects too many layers | The layer sits above layers you did not want to change | Move it lower in the stack, or clip it to a single layer. |
| The adjustment misses a layer | The layer is above the adjustment | Drag the adjustment layer above it. |
| Properties panel shows nothing | No adjustment layer is selected | Click the adjustment layer in the Layers panel. |
| You cannot reopen the settings | You used Image > Adjustments, or flattened the file | Undo if possible. Otherwise redo the work on an adjustment layer. |
| Colors look wrong after a Curves edit | The layer uses Normal blend mode and shifts color along with brightness | Set the blend mode to Luminosity. |
| Adjustment applies to a masked area unexpectedly | You started painting on the layer thumbnail rather than the mask | Click the mask thumbnail first. A white outline shows which one is active. |
A short hands-on routine
Try this on any photo to practice every step in this chapter.
- Open a photo and confirm the Layers panel shows a single Background layer.
- Click the Background layer to select it.
- Click the half-filled circle at the bottom of the Layers panel and choose Hue/Saturation.
- In the Properties panel, drag Saturation to +30. The image gets more colorful.
- Click the eye icon on the layer to hide it, then show it again. This confirms the original pixels are intact.
- Lower the layer's opacity to 60%. The effect weakens.
- Double-click the layer name and rename it "Boost saturation".
- Save as a PSD. Close the file and reopen it. Click the adjustment layer and confirm that the Saturation value is still +30.
- Add a second adjustment, Levels, above the first. Notice that it affects the result of the Hue/Saturation layer, not only the original photo.
If step 8 shows the value you set, your adjustment layer is stored as settings and not as pixels.
Exercise
You have a document with three layers, from top to bottom: "Logo", "Photo", "Background". You select "Photo" and add a Curves adjustment layer. Which layers does the adjustment affect, where does the new layer appear, and what would you do to make it affect only "Photo"?
Show answer
The Curves layer is inserted directly above "Photo", between "Photo" and "Logo". It affects "Photo" and "Background" (everything below it) but not "Logo". To limit it to "Photo" only, turn on Clip to layer in the Properties panel (or Alt/Option-click the line between the Curves layer and "Photo"). Then the adjustment applies only to the layer directly below it.
Exercise
A colleague opens your layered PSD and says the Levels settings are gone. You exported the file as a JPEG and sent that. Why can't the Levels settings be recovered, and what should you send instead?
Show answer
A JPEG has only one layer of pixels. Exporting flattens the image and applies the adjustment to the pixels, so the stored Levels parameters no longer exist. To let your colleague edit the adjustment, send the layered PSD or TIFF (with layers preserved). Keep the layered master as your working file and export JPEGs only as final copies.