Sub topic 5
Creating and duplicating layers
This chapter assumes you can open a document, find the Layers panel, and use the Move and selection tools. It also assumes you know the difference between pixels and vector shapes. You will learn the ways to create each kind of layer, how duplication works, and the errors that most often trip people up.
What "new layer" means
Every new layer is inserted into the stack relative to the layer that is currently active. If a layer is selected, the new layer goes directly above it. If a group is selected, the new layer goes inside that group, above its top item. If the Background layer is selected, the new layer goes above it.
This rule explains most "where did my layer go?" problems. Check which layer is highlighted before you create anything.
Creating an empty pixel layer
A pixel layer is a transparent surface you can paint on. There are three common ways to make one:
- Click the New Layer button at the bottom of the Layers panel.
- Choose Layer > New > Layer (Shift+Ctrl+N on Windows, Shift+Cmd+N on macOS). This opens a dialog where you can set a name, a color label, a blend mode, and an opacity before the layer exists.
- Hold Alt (Windows) or Option (macOS) while clicking the New Layer button. This opens the same dialog.
Without the dialog, the layer is named "Layer 1", "Layer 2", and so on. Renaming it right away is a good habit, and a later chapter covers naming conventions.
Creating fill and adjustment layers
Fill and adjustment layers are not pixel containers. They store settings, and Photoshop applies those settings to the layers below.
- A fill layer holds a solid color, a gradient, or a pattern.
- An adjustment layer holds a correction such as Curves, Levels, or Hue/Saturation.
Create either one from the Create new fill or adjustment layer button (the half-filled circle) at the bottom of the Layers panel, or from Layer > New Fill Layer and Layer > New Adjustment Layer.
Both types come with a built-in layer mask. Because the correction is stored as settings, you can reopen it by double-clicking the layer thumbnail and change it at any time. Nothing in the pixel layers below is altered.
Creating type and shape layers
- Type layers are created by clicking the canvas with the Type tool and typing. The text stays editable until you rasterize it.
- Shape layers are created with the Rectangle, Ellipse, Polygon, Line, or Custom Shape tools when the tool mode is set to Shape. They stay vector-based and can be resized without quality loss.
If the tool mode is set to Pixels instead of Shape, drawing a rectangle paints pixels onto the active layer and creates no new layer. This is a frequent source of confusion. Check the mode in the Options bar before drawing.
Creating a layer from existing content
You can also create a layer from something you already have:
- Layer via Copy (Ctrl+J / Cmd+J) copies the current selection onto a new layer and leaves the original untouched.
- Layer via Cut (Shift+Ctrl+J / Shift+Cmd+J) moves the selected pixels onto a new layer and leaves a hole in the original. On the Background layer, the hole is filled with the background color.
- Paste (Ctrl+V / Cmd+V) creates a new layer from clipboard content.
- Dragging an image file into the document window places it as a smart object, a layer that keeps the source file's data so you can scale it without permanent loss.
Layer via Copy with no active selection duplicates the whole layer, which brings us to duplication.
Duplicating layers
Duplicating makes an exact copy of a layer, including its mask, effects, opacity, and blend mode. The copy is named after the original with "copy" added to the end, and it is placed directly above the original.
| Method | How | Notes |
|---|---|---|
| Keyboard shortcut | Ctrl+J / Cmd+J with no selection | Fastest way to copy the active layer |
| Panel button | Drag the layer onto the New Layer button | Copy is named "... copy" |
| Menu | Layer > Duplicate Layer | Opens a dialog with a name and a destination |
| Drag with Alt/Option | Alt-drag or Option-drag a layer in the panel | Lets you place the copy at a chosen spot |
| Move tool | Alt-drag or Option-drag on the canvas | Duplicates the layer and moves the copy in one step |
The Duplicate Layer dialog has a Destination section. You can send the copy to the same document, to another open document, or to a new document. This is the cleanest way to move a layer between files while keeping its settings.
Duplicates and smart objects
Duplicating a normal pixel layer creates an independent copy. Editing one does not change the other.
Smart objects behave differently depending on the method:
- Layer > New > Layer via Copy and Ctrl+J / Cmd+J create a copy that shares the same embedded content. Editing the contents of one updates the other.
- Layer > Smart Objects > New Smart Object via Copy creates an independent copy with its own embedded content.
Use the shared version when you want one edit to update many copies, such as a logo repeated across a layout. Use the independent version when each copy needs its own edits.
Common errors
- The new layer lands in the wrong place. The wrong layer or group was active. Select the right one first, or drag the new layer to the correct spot afterward.
- Painting does nothing visible. The active layer may be a fill, adjustment, or smart object layer, or it may be locked. Select a pixel layer or create one.
- A shape draws pixels instead of a vector layer. The Options bar mode is set to Pixels.
- Edits to a duplicate also change the original. The layer is a smart object copied with Layer via Copy. Use New Smart Object via Copy next time, or convert the duplicate back to a normal layer by rasterizing it.
- File size grows quickly. Every duplicated pixel layer stores its own full set of pixels. Delete duplicates you no longer need.
Creating and duplicating with a script
You can create layers in a script as well. The script below adds a pixel layer, names it, and then duplicates it.
// ExtendScript (.jsx): create a named layer, then duplicate it
var doc = app.activeDocument;
var layer = doc.artLayers.add();
layer.name = "Highlights";
var copy = layer.duplicate();
copy.name = "Highlights backup";
copy.visible = false;artLayers.add() places the new layer above the active layer, which matches the panel behavior. duplicate() returns the new layer so you can rename or hide it right away.
Exercise
You select a group named "Lighting" in the Layers panel and click the New Layer button. Where does the new layer appear, and what would you do if you wanted it outside the group?
Show answer
The new layer appears inside the "Lighting" group, above the group's top item, because a selected group receives new layers. To place it outside, select a layer that is outside the group (or deselect the group's contents) before creating the layer, or drag the new layer out of the group in the Layers panel afterward.
Exercise
You place a logo as a smart object, press Ctrl+J / Cmd+J to duplicate it, and edit the embedded content of the copy. The original logo changes too. Why, and which command avoids this?
Show answer
Ctrl+J / Cmd+J (Layer via Copy) creates a smart object copy that shares the same embedded content, so an edit to one shows up in both. Layer > Smart Objects > New Smart Object via Copy makes an independent copy with its own content, so edits stay separate.