Skip to main content

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 channelLayer mask
NatureBaked into the layer's pixelsA separate, editable attachment
Reversible?No — erased pixels are goneYes — hidden pixels return by editing the mask
Best forFinal exported transparencyFlexible, 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."

flowchart LR A[Cut-out layer] --> B[Alpha to Selection] B --> C{Use the silhouette} C -->|Stroke| D[Outline the subject] C -->|Shadow| E[Fill a drop shadow] C -->|Reuse| F[Mask another 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.
  • JPEGno 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

  1. Add alpha and erase. Open a JPEG, add an alpha channel, and erase part of it to the checkerboard.
  2. Silhouette shadow. Use Alpha to Selection on a cut-out to fill a soft drop shadow behind it.
  3. 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.

➡️ What's Next

Friday applies all of this to compositing, starting with Edge Blending and Integration.

Additional Resources