Alpha Channels and Transparency
How GIMP stores "nothing," and how to use and export it
In This Lesson
What the Alpha Channel Is
The alpha channel is a grayscale map of opacity: white is fully opaque, black is fully transparent, and grays are partially see-through. It is what lets an image contain "nothing" — the empty space around a cut-out subject. GIMP shows transparency as a gray-and-white checkerboard. Alpha is the destination of all your selection and masking work: a knockout is only real once its background is transparent.
🎨 An Analogy
Color channels say what color a pixel is. The alpha channel says how much that pixel exists. A pixel can be bright red yet 0% alpha — it is red, but invisible.
Adding and Removing Alpha
A freshly opened JPEG or a flattened image has no alpha channel — erasing paints the background color instead of clearing to nothing. Fix it with Layer → Transparency → Add Alpha Channel. To go the other way (baking transparency onto a solid color), use Flatten Image, which drops alpha.
💡 The Telltale Sign
If the Eraser reveals white or your background color instead of the checkerboard, the layer has no alpha channel. Add one and the eraser (and delete-selection) will clear to true transparency.
Alpha vs. Layer Mask
Both control transparency, but differently:
| Alpha channel | Layer mask | |
|---|---|---|
| Nature | Baked into the layer's pixels | A separate, editable attachment |
| Reversible? | No — erased pixels are gone | Yes — hidden pixels return by editing the mask |
| Best for | Final exported transparency | Flexible, in-progress hiding |
Workflow rule: mask while you work, alpha when you finish. Keep transparency in an editable mask during editing; convert to real alpha (Apply Layer Mask, or export) only when the cut-out is done.
Alpha to Selection
Layer → Transparency → Alpha to Selection selects exactly the opaque pixels of a layer — invaluable for compositing. Use it to select a cut-out subject in one click, to add a stroke or shadow that follows the subject's exact shape, or to load one layer's silhouette as a selection for another. It is the fastest way to say "select whatever is actually here on this layer."
Alpha to Selection grabs a layer's exact opaque shape for strokes, shadows, and reuse.
Exporting Transparency
Transparency only survives in formats that support alpha. When you File → Export As:
- PNG — the standard for transparent images (logos, cut-outs, web graphics). Full 8-bit alpha.
- WebP — smaller files with alpha for the web.
- GIF — only 1-bit alpha (a pixel is fully on or off), so edges look jagged. Avoid for soft edges.
- JPEG — no alpha at all; transparent areas export filled with a solid color.
⚠️ "My Transparency Disappeared"
Exporting a cut-out as JPEG replaces transparency with a background color — the number-one beginner surprise. For anything with transparency, export PNG. Keep JPEG for flat, fully opaque photos.
Edge Fringes and Matting
Semi-transparent edge pixels blend the subject with whatever was behind it. Placed on a new background of a different color, that leftover color shows as a fringe — the same halo problem from Edge Refinement. GIMP's Layer → Transparency submenu includes matting-style cleanups, and shrinking or recoloring the edge band removes the fringe so the alpha edge sits cleanly on any background.
Practice Activities
- Add alpha and erase. Open a JPEG, add an alpha channel, and erase part of it to the checkerboard.
- Silhouette shadow. Use Alpha to Selection on a cut-out to fill a soft drop shadow behind it.
- Export test. Export the same transparent cut-out as PNG and as JPEG, and compare what happens to the transparency.
Summary
✅ Key Takeaways
- The alpha channel stores opacity — white opaque, black transparent, shown as a checkerboard.
- Add Alpha Channel before erasing to transparency; Flatten drops alpha.
- Mask while working, alpha when finished — masks are reversible, baked alpha is not.
- Alpha to Selection grabs a layer's exact opaque shape for strokes, shadows, and reuse.
- Export PNG (or WebP) to keep transparency — never JPEG.
Additional Resources
- Previous lesson: Layer Mask Properties and Operations
- Next in this module: Edge Blending and Integration
- Foundation: Image File Formats (Module 1)