GIMP Alpha Channel, what is it?

GIMP - Alpha channel, what is it?

Few months ago I made a first introduction to GIMP - https://kimsereyblog.blogspot.co.uk/2016/09/gimps-primary-features.html - the post was oriented toward the toolbox and what features were available.
Today I would like to share an explanation on what the alpha channel is and show you how you can outline text using the alpha channel.

1. What is the alpha channel

The channels tab can be seen from the Layers view.
There are 4 channels, Red, Green, Blue and Alpha.

https://raw.githubusercontent.com/Kimserey/BlogArchive/master/img/20161215_gimp/1-channels.png

The alpha channel is used for transparency.
Transparency means that when you export to .png, the transparent parts of your image will show whatever is underneath. This is very useful for apps icons or images for web design.

When your layer does not have an alpha channel, its name should be bolded.

https://raw.githubusercontent.com/Kimserey/BlogArchive/master/img/20161215_gimp/2-bold.png

When it has one it should not be bolded.

https://raw.githubusercontent.com/Kimserey/BlogArchive/master/img/20161215_gimp/3-alpha.png

Also when right click on the layer, Add alpha channel should be grayed out.

https://raw.githubusercontent.com/Kimserey/BlogArchive/master/img/20161215_gimp/4-menu.png

Having an alpha channel allows us to add transparency to our image.
By deleting things on the image, we will be able to see underneath.

Some elements already come with alpha channel, like Text. We will see next how we can use the alhpa channel from Text to outline our text.

2. Add outline to text

First create some text using the Text tool.

https://raw.githubusercontent.com/Kimserey/BlogArchive/master/img/20161215_gimp/6-text2.png

Next click on the text layer and select Alpha to selection.

https://raw.githubusercontent.com/Kimserey/BlogArchive/master/img/20161215_gimp/7-alphaselection.png

It means that you will be selecting all colors that aren’t transparent in your current layer - which is just your text.

Now go to Selection > Grow and grow the selection by few pixels.

https://raw.githubusercontent.com/Kimserey/BlogArchive/master/img/20161215_gimp/8-grow.png

This grows the text selection to the number of pixel requested.

https://raw.githubusercontent.com/Kimserey/BlogArchive/master/img/20161215_gimp/10-growselection.png

Then create a new layer by clicking on the layer icon from the Layers view and paint the selection.

https://raw.githubusercontent.com/Kimserey/BlogArchive/master/img/20161215_gimp/11-paintgrow.png

You can now place the text layer on top of the outline layer and we’re done!

https://raw.githubusercontent.com/Kimserey/BlogArchive/master/img/20161215_gimp/13-helloworld.png

Conclusion

It took me some time to understand what was the alpha channel and what I could do with it.
Today we saw how to add an alpha channel if our image doesn’t have one and we saw how to use the alpha channel of text to outline input.
Hope you like this quick GIMP tutorial! Don’t forget to follow me on Twitter @Kimserey_Lam. See you next time!

Support me

Support me by visting my website. Thank you!

Support me by downloading my app BASKEE. Thank you!

baskee

Other posts you will like

Comments

Popular posts from this blog

Microsoft Orleans logs warnings and errors

A complete SignalR with ASP Net Core example with WSS, Authentication, Nginx

SDK-Style project and project.assets.json