Sub topic 3
Layer types you will meet
Photoshop stores an image as a stack of layers, and each layer has a type that decides what it holds and how you can edit it. This chapter covers the six types you will use most: pixel, type, shape, smart object, adjustment, and fill. It assumes you can open a document, find the Layers panel, and use the Move tool and basic selections. It also assumes you know the general difference between pixels and vector shapes.
Why the type matters
A layer's type controls three things:
- What the layer stores, such as pixels, text, a path, an embedded file, or a set of adjustment settings.
- Which tools can edit it directly.
- What you lose, if anything, when you resize or transform it.
Most mistakes with layers come from treating one type like another. Painting on a type layer, for example, forces Photoshop to rasterize it, which turns the live text into pixels. Knowing the type tells you what an action will cost before you do it.
You can identify a layer's type from its thumbnail in the Layers panel.
| Layer type | Thumbnail | Stores | Edit without quality loss |
|---|---|---|---|
| Pixel | Small image of the content | A grid of colored pixels | No, resampling softens it |
| Type | Capital "T" icon | Editable text and character settings | Yes, until rasterized |
| Shape | Colored swatch with a vector badge | Vector path with fill and stroke | Yes |
| Smart object | Page icon in the corner | An embedded source file | Yes, for scaling and filters |
| Adjustment | Adjustment icon, usually with a mask | Settings for a color or tone change | Yes, settings stay editable |
| Fill | Solid color, gradient, or pattern swatch | A fill definition plus a mask | Yes |
Pixel layers
A pixel layer holds a grid of pixels. It is the default type. Brush strokes, photos you paste in, and results from the Clone Stamp and Healing tools all live on pixel layers.
Pixels have a fixed resolution. If you scale a pixel layer down to 50% and then back up to 200%, the image is softer than the original because Photoshop discarded detail on the way down and had to invent it on the way up. Scale pixel content as few times as possible, or convert it to a smart object first.
A new pixel layer is transparent. Transparent areas show the layers below, and the Layers panel draws them as a gray and white checkerboard when you hide everything else.
Type layers
Create a type layer by clicking with the Type tool and typing. The text stays editable: you can change the words, font, size, and color at any time.
Type layers remain vector-based, so they scale cleanly. Photoshop asks to rasterize a type layer when you use a tool or command that needs pixels, such as a brush or most filters. After rasterizing, you can no longer edit the text as text.
Shape layers
A shape layer holds a vector path with a fill and an optional stroke. You create one by choosing a shape tool, such as Rectangle or Ellipse, with its mode set to Shape, then dragging on the canvas.
Because the shape is a path, you can resize it as much as you like without softening the edges. You can also change the fill, stroke, and corner radius later in the Properties panel.
If the tool mode is set to Pixels, the same drag paints pixels on the current layer and creates no shape layer. When a shape tool does not produce the layer you expect, check the mode in the Options bar first.
Smart objects
A smart object wraps content, usually an image or a vector file, inside a container layer. The original data stays inside, and the layer shows a rendering of it. Transforms and filters applied to the container do not damage the source.
This gives you several abilities:
- Scale the layer down and up again with no cumulative loss.
- Apply filters as Smart Filters, which stay editable and can be turned off.
- Double-click the thumbnail to open the embedded contents and edit them. When you save, every linked instance updates.
The cost is file size, because the embedded source adds to the document. Direct pixel editing is also blocked: to paint on a smart object you must open its contents or rasterize it.
You can convert a pixel layer by choosing Layer > Smart Objects > Convert to Smart Object.
Adjustment layers
An adjustment layer applies a tonal or color change, such as Curves, Hue/Saturation, or Black & White, to everything below it in the stack. It stores only settings. The pixels underneath are untouched, so you can edit or delete the adjustment at any time.
Each adjustment layer comes with a built-in layer mask. Painting black on the mask hides the effect in that area, and painting white restores it. The effect also respects stacking order. An adjustment placed at the top affects the whole image, while one placed lower affects only what sits beneath it.
Fill layers
A fill layer fills the whole canvas with a solid color, a gradient, or a pattern. Like an adjustment layer, it has a mask, and its settings stay editable. You choose Layer > New Fill Layer and then pick Solid Color, Gradient, or Pattern.
Fill layers are useful for backgrounds you may recolor, for color washes set to a blend mode, and for gradients that you want to change later. Double-click the swatch to change the color without repainting anything.
Choosing the right type
Use these rules when deciding what to create:
- If the content is text, use a type layer.
- If it is a clean geometric element such as a button or a divider, use a shape layer.
- If it is a photo you may resize or filter, convert it to a smart object.
- If you are changing color or tone, use an adjustment layer instead of applying the change to pixels.
- If you need painting or retouching, use a pixel layer, and keep retouching on its own layer above the photo.
Doing it with a script
You can also create layers in code. The ExtendScript below adds a pixel layer and an empty group, names both, and moves the layer into the group. Save it as a .jsx file and run it with an open document.
// ExtendScript (.jsx): create a named layer and a group, then put the layer inside the group
var doc = app.activeDocument;
var layer = doc.artLayers.add();
layer.name = "Highlights";
var group = doc.layerSets.add();
group.name = "Lighting";
layer.move(group, ElementPlacement.INSIDE);Common errors
- Painting does nothing on a smart object or type layer. Photoshop blocks direct painting on these types. Create a new pixel layer above and paint there.
- A shape tool draws pixels. The Options bar mode is set to Pixels. Switch it to Shape.
- An adjustment affects too much of the image. Check its position in the stack and its mask. Move it lower or paint black on the mask.
- Text is blurry after scaling. The type layer was probably rasterized, or it sits inside a rasterized or pixel-based container. Recreate it as live type.
Exercise
You placed a photo on a pixel layer, scaled it to 25%, and now need it larger again without losing sharpness. What should you have done first, and what is the cost of that choice?
Show answer
Convert the layer to a smart object before scaling. The smart object keeps the original pixels, so scaling down and back up does not degrade the image. The cost is a larger file, and you cannot paint directly on the layer without opening its contents or rasterizing it.
Exercise
A Curves adjustment layer sits above a photo layer and a text layer, but you want it to brighten only the photo. Give two ways to limit its effect.
Show answer
Move the adjustment layer so that it sits directly above the photo and below the text layer, or paint black on its layer mask over the areas that should stay unchanged. Clipping it to the photo layer also works.