Sub topic 6
Transparency: Background Layers, Alpha, and Formats That Support It
Assume you already understand Photoshop layers, pixels, and basic file saving. This chapter focuses on how Photoshop represents areas that contain no visible pixels, and how that information changes when you save as PSD, JPEG, or PNG.
What transparency means
Transparency is the absence of a visible pixel. It lets the background behind an image show through. For example, a logo with transparent corners can appear on a web page without a white rectangle around it.
Photoshop stores transparency with an alpha channel. An alpha channel is data that records how visible each pixel is:
- Fully opaque pixels have 100% visibility.
- Fully transparent pixels have 0% visibility.
- Partly transparent pixels have a value between those two extremes.
The checkerboard pattern in Photoshop indicates transparent areas. The checkerboard is only a workspace preview. It is not part of the saved image.
Background layers and transparent layers
A new Photoshop document can start with a background set to white, black, or another color. Photoshop creates this as a Background layer, which is locked and does not normally support transparent pixels.
To create transparency, unlock the Background layer by clicking its lock icon in the Layers panel. It becomes a regular layer. You can then erase pixels, add a layer mask, or move the visible content away from part of the canvas.
A layer mask hides pixels without deleting them. Painting black on the mask hides an area, while painting white reveals it again. This is usually safer than using the Eraser tool because the original pixels remain available.
Transparency can also exist between layers. A document may contain several transparent layers, each holding only part of the final image. Photoshop composites, or combines, those layers when displaying the document.
What each format keeps
| Format | Layers | Transparency | Typical use |
|---|---|---|---|
| PSD | Preserved | Preserved | Editable working file |
| PNG | Usually flattened | Preserved | Logo, icon, or graphic with transparency |
| JPEG | Flattened | Not supported | Photographs and opaque web images |
PSD preserves layers, masks, smart objects, and other editing information. Save a working document as PSD before creating delivery files.
PNG uses lossless compression, so it does not discard image detail during compression. It can include an alpha channel. When you save a layered Photoshop document as PNG, Photoshop creates a flattened representation of the visible result, so the individual layers are no longer editable in that PNG.
JPEG does not support transparency. Photoshop must flatten the image against a background color, often white, before saving it. JPEG compression is lossy, which means it permanently removes some image information to reduce file size. It is suitable for photographs but usually unsuitable for logos with transparent edges.
Guided workflow: save a logo with transparency
- Open the logo in Photoshop.
- Unlock the Background layer if it is locked.
- Remove the unwanted background or use a layer mask.
- Confirm that unwanted areas show the checkerboard pattern.
- Save the editable version as a layered PSD.
- Use Export As or Save a Copy to create a PNG.
- Open the PNG separately and check its edges against both a light and a dark background.
- Do not use JPEG unless you intentionally want an opaque background.
Semi-transparent pixels around an edge can contain color from the original background. This creates a halo when the logo is placed on a different background. Inspecting the exported PNG against contrasting colors helps reveal this problem.
Exercise
You need an editable logo file and a web version with transparent corners. Which formats should you create, and why?
Show answer
Create a layered PSD for editing and a PNG for delivery. PSD preserves layers and masks, while PNG preserves the visible image and its transparency. Do not use JPEG because JPEG cannot store transparency.