Transparency comes from an alpha-channel. You add one from Layer -> Transparency -> Add Alpha Channel. Not all formats support transparency, so choosing the right export target is essential. This guide compiles practical steps and common techniques for creating transparent areas in GIMP and keeping them usable across workflows.
Ensuring an alpha channel and basic transparency
Transparency comes from an alpha-channel. You add one from Layer -> Transparency -> Add Alpha Channel. Removing a plain background can be done in several ways. Colors -> Colour-to-Alpha The colour to remove is set as white, no need to change anything. If another colour then there is a colour picker to use.
The colours in the image are light and they get a bit removed as well, become semi-transparent. Use the Opacity Threshold slider to restore.
Approaches to remove backgrounds and refine transparency
Removing a plain background can be done in several ways. The colours in the image are light and they get a bit removed as well, become semi-transparent. Use the Opacity Threshold slider to restore. In addition, Right click the panorama layer in the Layer's palette and choose "Layer to image size" to manage boundaries, then add a layer mask for more precise editing. The layer has 2 boxes, one that represent the colour, and another white one that represents the mask. You can edit either by clicking on one of those boxes.
One helpful method is using the Fuzzy Select wand (threshold value) to select sky colours, then switch to the white mask box and fill the selected area with black. This creates a mask that hides the sky while preserving other areas. The workflow often involves switching between selecting the colour and editing the mask to refine the transparent regions.
Before exporting, if you need to adjust foliage visibility, select the mask, then go to Filters ➤ Distorts ➤ Value propagate..., followed by Colors ➤ Threshold. This combination can enhance or reduce transparency in targeted areas. It’s important to ensure there is a balance between preserving detail and creating clean transparency.
Layer boundaries, panorama handling, and texture considerations
IMPORTANT: Make sure all textures have dimensions which are integer powers of 2, i.e. 256, 512, 1024, 2048, 4096, 8192, 16384, ... This is a limitation of OpenGL. If you dragged another image into your canvas, it will be on its own layer, with its own boundary, so it will show through fine if your panorama layer (with its smaller boundary) is on top. It’s when you try to draw into a layer with a smaller boundary than you expect that you’re going to have the problem you had in the first post.
To handle large panoramas, ensure the panorama layer boundary matches the intended final composition. Right-click the layer again, "Add layer mask" and edit the mask to refine the transparent regions, especially around the sky where you may need more manual input.
Practical tips for color-based transparency and masking
The right thing to do now is Select → By Colour. It might be tempting to perform Colour to Transparency, however this would also change semi-transparent areas within the desired image area. This time around, do select Fill transparent areas as well as Sample merged. For this particular example I chose not to apply Antialiasing nor Feather edges. Nonetheless, do experiment with these settings and choose what looks best. Again, run a few tries while adjusting Threshold and experiment with Antialiasing and Feather edges for best results.
Color-based selection can be tricky; some of the desired image area might be selected as well because the colour matched. In such cases, refine the threshold, switch between masking and selection, and proceed with controlled fills to preserve non-target areas.
Exporting and formats that retain transparency
Before exporting, If you do need to adjust the foliage visibility ➤ Click on the mask to select it, then Filters ➤ Distorts ➤ Value propagate... Then Colors ➤ Threshold... Before to export, If you do need to adjust the foliage visibility ➤ Click on the mask to select it, then Filters ➤ Distorts ➤ Value propagate...
Finally, export the transparent image with File → Export As... to a file format which supports transparency. Not all formats support transparency, so PNG or TIFF are common choices depending on needs.

How to Add Alpha Channel in GIMP
In Photoshop that would have just worked, but GIMP tries to be a bit more memory efficient by allowing layers to have a smaller boundary than the actual canvas if need be. See that dotted outline around your panorama? That's the extent of the layer boundary, you will never be able to draw anything outside that boundary without modifying the layer boundary. Over in the Layer's palette on the right, Right click the panorama layer, choose "Layer to image size".
No - ignore that, you found some info that's only relevant to using an image as a texture on a 3D model for a video game, running in real time. You're editing a photo, this is not even remotely the same thing, so don't worry about those numbers you read there. Make your canvas any size you need to, just see what the final result looks like. That's exactly what this is used for, a real-time representation of the sky relative to your current surroundings along with time and date. You might have a planetarium app for your phone such as sky safari or in this case Stellarium.
Guidance for performance and memory considerations: if you encounter issues, consider reducing image size step by step (e.g., down to 1024 x 1024) to see if memory usage improves. This can help identify whether the problem lies with large textures or layer boundaries.
tags: #gimp #fill #with #transparency