Mike Rankin shows how to work with layer masks in GIMP. Creating, editing, and viewing layer masks are all demonstrated, as are tips for changing the size of a layer mask preview, and showing a layer mask as a grayscale channel.
- [Instructor] In this movie we'll see how to create and edit a layer mask in GIMP, and let's say the goal here was to try a different background behind the surfer using the content in the beach layer beneath. You can apply a layer mask by selecting a layer in the layers dialogue and going to the layer menu and choosing mask, add layer mask, or by right clicking on a layer thumbnail, or choosing the same command in the menu of the layers dialogue, and when you use any of these methods, you get a dialogue box.
Here you can choose some of the options for your mask. A layer mask in GIMP is actually an extra channel where the value of each mask pixel determines the visibility of the corresponding pixel in your image. Black pixels on the mask make the image transparent, white pixels on the mask leave the image completely visible, and gray values in between give you a partially transparent image pixel. So, for example, a mask filled with 50% gray will make a layer 50% visible, and in the dialogue I can initially make the mask white which leaves a layer with full opacity, black which completely hides the layer, I can use existing alpha channels, I can make a mask based on a selection, so whatever's selected will be visible and what's deselected will be hidden, I could also use a grayscale copy of the layer in which case lighter pixels would be left more visible than darker pixels, or I can pick a channel that was already saved in the image like the surfer silo channel that's saved inside this file.
Also note that I have the option to invert any of these choices to reverse the effects of the mask. I'm going to start out with white for full opacity and click add. Now, since the mask is just a grayscale channel which happens to be filled with white right now, I can use any of the tools for selecting and editing images. I can paste content into the mask, I can run filters on the mask, and so on, and when you want to edit a layer mask you first have to be sure that you have the mask selected and not the layer itself.
You can select either the mask or the layer by clicking on their thumbnails. So I'll be sure I click on the mask, and then to start simple, I'm going to take the paintbrush tool, I'll choose the hardness 100 brush, I'll set the size to something big like 200 pixels, and make sure I have 100% opacity and that the foreground color is black, and then paint somewhere on the mask, and where I painted with black I can now see through this layer to what's beneath it, and that can continue on in a way that looks like I'm erasing pixels, but the key difference is that I'm only hiding pixels that I can show again by changing the color that I'm painting with.
I'll click the small curved arrow by the foreground background colors to reverse them. So now I'm painting with white on the mask, and painting with white reveals some of those areas that I hid previously. If I want to create an effect where this layer is partially transparent, I can use an intermediate gray color, and so to change the color I'm painting with I'll click the foreground color and change the lightness value to 50, and now when I paint on the mask I make areas of this layer 50% opaque, and you might notice as I've been painting on the mask, the thumbnail in the layers dialogue updates to give me an accurate representation of the mask.
Clicking and holding on it shows it at a bigger size. If you want to see a full-sized version of the mask in the document window instead of your image, go to the layer menu and choose mask, show layer mask, and on some systems you can use a keyboard shortcut to show or hide the mask by holding Alt, or Option on the Mac, and clicking the mask thumbnail. On other systems, the keyboard shortcut would be Control + Alt click on the mask, and notice when you're viewing the mask it's highlighted in green here, and when you want to go back to viewing the image, use that same keyboard shortcut you used to show the mask.
You can also fill a layer mask with a gradient to fade one layer into another. So with the mask selected, I can take the gradient tool, I'll click to reset the default black and white foreground colors, and then drag in the image. I can reposition the ends of the gradient to adjust this mask, and when I'm happy, I'll just press Return or Enter to accept the new gradient mask, and finally, to use a layer mask to hide the background of the top layer, I'll first delete the existing mask by choosing layer, mask, delete layer mask, and then I'll add a new one, layer, mask, add layer mask, and I'll base it on a channel, the surfer silo channel, and click add, and there's our new background.
In this movie we got our first look at layer masks which are simply grayscale channels associated with a layer where black conceals and white reveals.
Author
Released
2/28/2019- Navigating the GIMP interface
- Creating and saving documents
- Working with selections
- Using Quick Masks
- Adjusting images with Curves and Levels
- Converting text to paths
- Working with colors and brushes
- Configuring brush keyboard shortcuts
- Enhancing photos with filters
- Outputting images
Skill Level Beginner
Duration
Views
Related Courses
-
Affinity Photo Essential Training
with Steve Caplin3h 31m Beginner -
Editing Images Using Snapseed
with Justin Reznick57m 51s Intermediate -
Learning Lightroom CC
with Jan Kabili1h 47m Beginner -
Learning Adobe Spark Post
with Nicte Cuevas1h 38m Intermediate
-
Introduction
-
1. Get Started
-
Tour the GIMP interface4m 46s
-
Explore GIMP preferences2m 36s
-
Explore GIMP tools3m 48s
-
Create new documents3m 26s
-
Work with document templates2m 59s
-
Save documents3m 42s
-
View documents3m 51s
-
-
2. Work with Selections
-
Rectangle Select tool4m 38s
-
Selection tool options4m 32s
-
Ellipse Select tool1m 57s
-
Free Select tool4m 29s
-
Fuzzy Select tool3m 26s
-
Select by Color tool2m 34s
-
Scissors Select tool2m 58s
-
Foreground Select tool2m 45s
-
Quick masks4m 45s
-
Saving selections2m 25s
-
The Selection Editor2m 51s
-
-
3. Work with Layers
-
Understanding layers3m 18s
-
Add layers3m 8s
-
Work with layer boundaries4m 17s
-
Arrange layers2m 53s
-
Link and group layers3m 34s
-
Control layer opacity2m 18s
-
Blend layers6m 1s
-
-
4. Work with Masks
-
Create layer masks5m 16s
-
Move and copy layer masks2m 54s
-
-
5. Work with Paths
-
Understanding paths2m 50s
-
Draw curved paths3m 24s
-
Modify paths2m 55s
-
Paths and selections3m 34s
-
Stroke paths3m 49s
-
Transform paths2m 44s
-
Copy and merge paths2m 36s
-
Import and export paths2m 41s
-
-
6. Adjust Images
-
Adjust canvas size4m 47s
-
Adjust print size4m 14s
-
Scale images3m 29s
-
Rotate images4m 7s
-
Crop images3m 56s
-
Using perspective2m 48s
-
Using Cage Transform3m 6s
-
Using Unified Transform3m 34s
-
-
7. Using the Paint Tools
-
Sampling colors3m 33s
-
Define colors3m 19s
-
Understanding brush types5m 34s
-
Brush dynamics3m 27s
-
The Brushes dialog4m 58s
-
Create a parametric brush3m 44s
-
Create a color brush4m 38s
-
Create a clipboard brush3m 35s
-
Bucket Fill tool1m 36s
-
Gradient tool4m 6s
-
Airbrush tool2m 13s
-
Ink tool1m 56s
-
MyPaint Brush tool4m 16s
-
-
8. Retouch Photos
-
Color Balance and Colorize3m 48s
-
Using Levels5m 21s
-
Using Curves5m
-
Sharpen images4m 25s
-
Blur images3m 39s
-
Create motion blur effects2m 41s
-
Dodge and Burn2m 15s
-
Healing tool2m 40s
-
-
9. Work with Filters
-
Distortion filters1m 57s
-
Split view1m 46s
-
Add drop shadows2m 25s
-
Add noise2m 57s
-
Fix red eye5m 3s
-
-
10. Work with Text
-
Add and edit text4m 36s
-
Transform text2m 58s
-
Convert text to paths3m 43s
-
Put text on a path2m 58s
-
-
11. Output Images
-
Print from GIMP2m 2s
-
Export JPG files for web3m 13s
-
Export PNG files for web1m 17s
-
Export for print4m 4s
-
-
Conclusion
-
Next steps1m 9s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Create layer masks