1. Computing & Technology

Using Layer Masks in GIMP to Edit Specific Areas of a Photo

From

1 of 4

How to Use Layer Masks in GIMP to Edit Specific Areas of a Photo
Mono photo of a building

This image combines the foreground of one version of the photo with the sky of a different version.

© Ian Pullen

Layer masks in GIMP offer a flexible to way to edit layers within a GIMP document so that they combine to produce more attractive composite images.

When a layer mask is applied to a layer, the mask makes parts of the layer transparent so that any layers below show through. This can be an effective way to combine two or more photos to produce a final image that combines elements of each of them. However, it can also open up the ability to edit areas of a single image in different ways to produce a final image that looks much more striking than if the same image adjustments had been applied universally to the whole picture.

This is the technique that I'm going to demonstrate in this tutorial using the free image editor GIMP. This technique is well suited for a range of subjects, particularly where the lighting varies significantly across a scene. For example in landscape photos, you could use this technique to darken a sky at sunset, so that the warm colors don't burn out, while lightening the foreground. You could achieve similar results of combined layers by deleting parts of the upper layer rather than using a mask to make areas transparent. However, once part of a layer has been deleted, it cannot be undeleted, but you can edit a layer mask to make transparent area visible again.

I recently wrote a tutorial that demonstrates how to convert a digital photo to black and white using the Channel Mixer in GIMP. In that article I produced one image with a dark sky and one with a light sky, which also resulted in a darker foreground. By using layer masks, these two photos could be combined to produce a final image that has more even contrast and greater detail across the image.

The following pages will demonstrate how to use layer masks in GIMP to combine two different versions of the same image and assumes that you are already familiar with GIMP enough to make the necessary adjustments to create two versions of the image.

©2012 About.com. All rights reserved.

A part of The New York Times Company.