• About
  • Contact
  • What People Are Saying

Everything You Need to Know About Gimp Layer Masks

Jan31st
2011
15 Comments Written by Daniel Veazey

One of the most popular posts on my blog is my Gimp Layer Mask tutorial. I feel like that post doesn’t fully explain everything you need to know about layer masks, so I’m going to try to break it down here, and hopefully by the end of this post, you will be a layer mask master.

What is a layer mask?

A layer mask is pretty much exactly what it sounds like. It puts a mask over a layer of your gimp image and you manipulate it to hide parts of the layer while showing other parts. When you apply a layer mask to an image, the mask itself deals with only black and white, and shades of gray in between. White areas of the mask make those corresponding areas of the layer opaque, and black areas of the mask make the corresponding areas of the layer transparent. Shades of gray make the layer partially transparent. The darker the shade of gray, the more transparent that part of the layer becomes, and the more of the layer below it shows through. Let’s look at an example:

In Gimp, open two photos by choosing “Open As Layers” from the File menu. As you can see on the right in the layers palette, each photo is on a separate layer.

Two layers

Next, right-click on the top layer and Add Layer Mask. A window pops up that says “Initialize Layer Mask to.” Choose White (full opacity).

Adding a layer mask

A white rectangle appears next to the thumbnail image in the layers palette:

Layer mask

It’s hard to tell, but this white rectangle also has a white border. The white border means that anything you do right now will be applied to the layer mask, and not to the layer itself. Try clicking on the thumbnail of the image on that layer and you’ll see the white border move over the thumbnail. Now any changes you make will be applied directly to that layer instead of the layer mask. Now there are lots of ways you can manipulate the layer mask. you can draw on it with the paintbrush, type over it with the text tool, make a gradient over it, etc. Any black that you add to the layer mask now will make that area of the layer transparent, and you’ll be able to see the layer below it in those areas. I guess I should make it clear that when you make changes here, you’ll be doing it in the main image area, not on the thumbnail of the layer mask. I think you already knew that, but I wanted to make sure. Let’s try drawing with a large, hard-edge brush and see what happens.

Effects of manipulating the layer mask

Where I drew on the image with black, it masked the area, allowing the layer below to show through. I might sound repetitive, but this is the main point of this post, and if you understand it, then you can do just about anything with a layer mask. In the layers palette, the thumbnail of the layer mask now has a black streak across it where I drew on the image. Now let’s look at how shades of gray affect the layer mask.

Shades of gray in the layer mask

Here I made a gradient on the right side of the image, with white on the left end and black on the right end of the gradient. You can see this in the layers palette. In the image, the layer fades out from left to right, corresponding to the gradient from white to black. One more thing, I made a circle in the lower left part of the image with a soft-edge brush, so the mask fades at the edges of the circle.

That is really all you need to know to get started with layer masks. I hope this helps. If you have any questions, feel free to drop me a line on the contact page.

Be Sociable, Share!
  • Tweet

Related posts:

  1. Gimp Layer Mask
  2. Gimp Tutorial: Super Groovy Wallpaper Part 2
  3. The best way to make a vignette in Gimp
  4. Tilt-shift simulation in Gimp
  5. Deer at Mt. Nebo
Gimp, Photography    Gimp, layer mask, tutorial
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail
← Using High Pass Filter To Sharpen Images In Gimp
Music Monday: Colours by Grouplove →

15 Comments

  1. dee's Gravatar dee
    August 19, 2011 at 4:54 am | Permalink

    ive wondered what layer masks are for a while , thanks for explaining.

  2. Daniel Veazey's Gravatar Daniel Veazey
    August 20, 2011 at 8:43 am | Permalink

    Thanks for leaving a comment. I’m glad I could help.

  3. Fran's Gravatar Fran
    August 24, 2011 at 9:20 pm | Permalink

    Thank You, thank you, thank you! your explanations and tutorials have been so helpful to me! I will be checking out everything you post before i go elsewhere!
    Thanks again!

  4. Daniel Veazey's Gravatar Daniel Veazey
    August 24, 2011 at 9:23 pm | Permalink

    Thank you for such a nice comment. :)

  5. Frank's Gravatar Frank
    October 21, 2011 at 8:48 am | Permalink

    Nice web site!.
    I have a question: Is it possible to copy layer masks from one picture to another (e.g. a different picture in a separate file, same size)? It seems “mask to selection” and then new layer mask from selection only works within the same picture…?

  6. Daniel Veazey's Gravatar Daniel Veazey
    October 21, 2011 at 9:08 am | Permalink

    Hi, thanks for the question. I had not tried copying a layer mask from one image to another, but I experimented a little bit and found a way. Once you have drawn a layer mask on the first image, right-click on the layer and choose “show layer mask.” Then select all with Ctrl-A, and then Ctrl-C to copy it. Now open your second image and add a layer mask to it. Right-click on the layer and choose “show layer mask” again, then paste the layer mask from your first image. Click the anchor button at the bottom of the layers palette, then right-click on the layer and uncheck “show layer mask.” That should do it. I hope this helps, and thanks for checking out my website.

  7. Frank's Gravatar Frank
    October 24, 2011 at 2:41 am | Permalink

    Yep, thanks. That’s one straightforward way to do it

  8. Yash Pal's Gravatar Yash Pal
    December 5, 2011 at 10:39 pm | Permalink

    Quite a helpful site; good, easy explanation. P lease keep it up.

  9. Angel's Gravatar Angel
    December 17, 2011 at 6:44 pm | Permalink

    this was very helpful thank you! i’m wondering if you could maybe give a few pointers on digital coloring using masks ?

  10. Carl, Sweden's Gravatar Carl, Sweden
    February 11, 2012 at 1:12 pm | Permalink

    Great article, I’ve always preferred the GIMP over proprietary software. Basically, layers herein work in the same was as in eg. Photoshop.

  11. lone, Denmark's Gravatar lone, Denmark
    May 13, 2012 at 10:15 am | Permalink

    Thank you. That was very helpfull.

  12. Jack Bunce's Gravatar Jack Bunce
    November 24, 2012 at 10:03 am | Permalink

    Thanks for writing the article; it helped me understand how layer masks actually work. And, it probably saved me a lot of money since I no longer need to buy Photoshop or other expensive program to help me make my photos less ugly :)

  13. Daniel Veazey's Gravatar Daniel Veazey
    November 24, 2012 at 10:53 am | Permalink

    Thanks for the comment, Jack. Glad I could help.

  14. Adam's Gravatar Adam
    December 3, 2012 at 7:26 am | Permalink

    Thank you very much for a tip how to copy layer mask! I had quite hard time to find info about that obvious funcionality. Still i need to used to it, but at least you can do it :) .

  15. alyr's Gravatar alyr
    February 4, 2013 at 5:56 pm | Permalink

    Neither post is hardly “everything you need to know”.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Why you should leave a comment

1. I read all the comments.
2. I reply and answer every question.
3. I always click through to see the sites of commentators.
4. Because you can.
5. You become a participant instead of just an observer.

EvoLve theme by Theme4Press  •  Powered by WordPress Daniel Veazey
Things I find interesting