How to Add an Alpha Channel in GIMP
If you have ever tried to erase part of an image in GIMP and ended up with a white area instead of transparency, the reason is a missing alpha channel. It is one of the most common things that trips up new GIMP users, and the fix takes about two seconds once you know where to look.
What Is an Alpha Channel?
Every pixel in an image has colour information stored in channels - Red, Green, and Blue (RGB). The alpha channel is a fourth channel that stores transparency information. A pixel with full alpha is completely visible. A pixel with zero alpha is completely invisible (transparent). Values in between create partial transparency.
When a layer does not have an alpha channel, GIMP has no way to store transparency data. So instead of making pixels transparent, it replaces them with the background colour - Usually white. That is why you get white instead of a checkerboard when you erase.
Erasing fills with white. Background removal leaves a white area. Transparency tools do not work.
Erasing shows a grey checkerboard - That means transparent. Background removal works correctly.
How to Add an Alpha Channel
Adding an alpha channel to a layer takes two clicks:
-
1Make sure the layer you want to work on is selected in the Layers panel (right side of the screen)
-
2Go to Layer - Transparency - Add Alpha Channel
That is it. You will not see a visible change in the image, but the layer now supports transparency. You can confirm it worked by looking at the layer thumbnail in the Layers panel - It will show a slight checkerboard border around the thumbnail edge.
When Do You Need an Alpha Channel?
You need to add an alpha channel before doing any of these tasks:
- Removing a background with Fuzzy Select or Select by Color and pressing Delete
- Using the Eraser tool and expecting to see through to lower layers
- Applying a layer mask to hide part of a layer non-destructively
- Saving a PNG with a transparent background
Watch Out for Flatten Image
If you go to Image - Flatten Image, GIMP merges all layers into one and removes all alpha channels. Any transparency you created gets filled with white. Only use Flatten Image if you specifically want that - For example, when preparing an image for a format that does not support transparency.
If you accidentally flattened, press Ctrl+Z to undo, then add the alpha channel again.
Once your alpha channel is in place, the next step is usually removing the background. The five background removal methods cover every type of image from solid colours to complex subjects with hair and fur.
Explore on GIMP.cc
Share this article: