Sub topic 5
Layers and Flattening: What a Flat File Loses
This chapter assumes you know the Photoshop workspace, image dimensions, pixels, and basic layer operations. You should also know how to select a layer and toggle its visibility.
A Photoshop document is built from layers stacked above a canvas. Each layer can contain pixels, text, shapes, adjustment instructions, or effects. Photoshop composites these layers into the image you see. This composited view is called the rendered result.
Layers preserve editing decisions
Layers separate parts of an image so you can change them independently. For example, a banner might contain:
- A background color layer
- A photograph layer
- A text layer
- An adjustment layer that changes brightness
- A layer mask that hides part of the photograph
- A shadow created with a layer effect
The layer panel stores more than the visible pixels. It stores the structure and settings used to produce those pixels.
A text layer keeps its characters, font, size, and position. An adjustment layer keeps its adjustment type and values. A mask keeps a separate grayscale image that controls which parts of a layer show. A smart object can preserve the original placed content and its transformation settings.
This structure makes a PSD an editable working file.
What flattening does
Flattening combines all visible layers into one layer, usually named Background. Photoshop calculates the current appearance and writes that result into a single pixel layer.
After flattening, the document no longer retains the original layer boundaries or most of the instructions that created the appearance. You can still edit the remaining pixels, but you cannot independently move the old text, change an adjustment value, or reveal hidden pixels from a discarded mask.
Flattening also changes transparency. If the document has transparent areas, Photoshop may replace them with a background color when flattening. The exact result depends on the document and the command you use. Check the canvas before saving a flattened copy.
Use Layer > Flatten Image only when you no longer need the separate layers, or when a delivery format requires a flat image. Save a layered PSD first if the document might need revisions.
Flattening versus merging
Flattening combines all visible layers and removes hidden layers. Merge Visible combines only the visible layers into one layer while leaving hidden layers available. Merge Down combines the selected layer with the layer directly below it.
These commands have different risks:
| Command | Result | Main risk |
|---|---|---|
| Flatten Image | One layer; hidden layers are removed | Broad loss of editability |
| Merge Visible | Visible layers become one layer; hidden layers remain | The merged result may be difficult to revise |
| Merge Down | Selected layer combines with the layer below | Masks, effects, and blend behavior may change |
Merging can also alter the appearance of blending modes, opacity, masks, and layer effects because Photoshop must calculate their combined result.
A safe workflow
Use this sequence when preparing a flat file:
- Save the editable document as a PSD.
- Duplicate the document or use a copy for delivery.
- Check layer visibility, transparency, and image dimensions.
- Flatten the copy only if the destination requires it.
- Save the copy as JPEG, PNG, or another suitable delivery format.
- Keep the original layered PSD unchanged.
A JPEG is always effectively flat and cannot preserve Photoshop layers. A PNG can preserve transparency, but it also does not preserve Photoshop layers, text, masks, or adjustment layers. Keep the PSD as the source of truth.
Exercise
You need to send a client a JPEG today but expect text revisions tomorrow. What should you do before creating the JPEG?
Show answer
Save the layered document as a PSD, then create and flatten a separate copy for the JPEG. Keep the PSD unchanged for future revisions.