Skip to main content

Using layer masks to composite an image

One of our more popular events is the Multiplicity shoot. This is a fun selfie portrait event where we set up our cameras, take multiple photos of ourselves and combine them into a single frame so it looks like we're interacting with our twins. At right is an example of one my grandson and I did together a few years ago.

While it may seem complicated, the editing part is quite simple. I'll walk you through the steps to accomplish this effect.

Loading selected images from Lightroom

I use Lightroom quite extensively. Because it is an Adobe product, it plays nicely with Photoshop, the program we'll be using to assemble our multiplicity image.

The first step is to go through the multiple images you took and select the various photos you think you'll want to use in your final rendition. If you have two similar posses you are not sure about use them both, you can disregard the ones you end up not using.

After culling through your selection, select the images by holding down the CTRL key as you click on the images you want to include in the composite. Once selected go to the top menu and select Photo / Edit in / Open as layers in Photoshop. This will load all the selected images into a stack ready for editing.

Opening selected images into a stack in Photoshop

If you don't have Lightroom (or don't use it) an alternative way of loading your selected images into a stack is to use Photoshop's handy script.

Use whichever method is easiest for you to sort through your images to select the ones you want to use for your final composite. Make a note of the file names and launch your Photoshop program. Once open go to File / Scripts / Load files into stack... This will load all the selected images into a stack ready for editing.

Compositing images in Photoshop

Once loaded, combining your images into a single multiplicity photo is easy enough. The most difficult part will probably be trying to keep track of what layer is what.

In order to make it a little easier it is best to keep the layers ordered by how the subjects (you) are layered from front to back. Meaning the foremost subject will be at the top of the stack while the furthest subject will be at the bottom of the stack.

Once rearranged it's time to decide how you want to approach compositing. There are two ways, top to bottom (front to back) or bottom to top (back to front). Either way works just as effectively and the end result will be identical. It's just a matter of what feels comfortable to you.

...back to front

To work back to front you will need to hide all the layers in the stack but the bottom two. To hide a layer click on the eye icon to the left of the layer thumbnail. The lowest layer will become the master plate that the composite gets built on. To start the process create a layer mask on the next layer up from the bottom.

...front to back

To work back to front you don't need to hide the layers as in the above process but just remember that the bottommost layer is still the master plate. To start the process from the top create a layer mask on the topmost layer.

Creating a layer mask

To create a layer mask first select the layer you want to add the mask to (top or bottom). Next click on the layer mask icon at the bottom of the layers window (the white rectangle with the dark circle in the center). A white rectangle will be displayed right next to the layer thumbnail.

To differentiate between the layer or the mask being selected just look for the white frame around the thumbnail, as seen in the image at left. In this example the mask is selected.

A note about layer masks: a mask, as the name implies, hides whatever is underneath it. In Photoshop, masks are handled with shades of black and white. Black hides while white reveals. Since we are dealing with a mask attached to a layer, it only hides or shows whatever is in that one layer it is attached to. Hiding part of a layer allows the next layer down the stack to show through.

Brushing on a mask

In our example we want to composite the top image with the next layer down. Meaning we want to hide everything but the main subject so we can see the layer below. We can go ahead and mask out all the background but that usually takes a lot of brushing. An easier way is to brush out the main subject and then invert the mask.

Make sure you're on the layer you want to mask and that the layer mask is selected. Click on the brush tool in the toolbox and set it so it's at 100% flow and 100% opacity with a feather of about 80%. Next make sure that black is selected as the foreground color and begin brushing out the main subject (as seen at right).

As you brush over the subject it will look like it disappears since the underlying layer starts coming through. You don't need to be super careful but there's no need to be sloppy either. You also want to pay attention to shadows cast by the subject also.

As you paint on the mask you will see a representation of your progress in the thumbnail. It will look like a black blob on the white mask. Keep painting until the entirety of the subject is gone. Now for the magic... Invert the mask by pressing CTR+I (CMD+I on a Mac). This will cause the mask to invert colors; black becomes white and white becomes black. This is a time saver and makes painting masks a little easier.

With any luck, you should now see two subjects in the frame, the top layer and the next layer down (if you're working top to bottom).

If there are any areas where one subject overlaps the other, zoom in to where they meet and clean up the mask so it looks correct. Working on the same layer mask brush black around the outside of the subject to fix any overlaps. If you make a mistake switch the foreground color to white (X key toggles foreground/background) and clean up the edges. Adjust brush size ( [ or ] bracket keys) as needed until you have a realistic composition.

...continuing back to front

Click on the eye icon on the next layer up to unhide the layer. This will hide what you just did. Don't worry. Select the new layer and repeat the process. Add layer mask, brush out the subject, invert mask, clean edges.

...continuing front to back

Select the next layer down and repeat the same process as before; add layer mask, brush out the subject, invert mask, clean edges.

A few notes and tips

It takes a few tries to get used to the concept of hiding and revealing stuff with layer masks so don't be afraid to make mistakes. Remember that switching foreground/background colors allows you to work the mask.

If you find yourself at a loss, hide all the layers except the one you are working on. This gets rid of all the distractions and lets you concentrate on getting a clean mask.

Use the same masking technique to fix background distractions. For example, a person or vehicle that entered your shot in the background you rather wouldn't want in your shot. You can also hide tools like light stands, assistants and other support props by taking a clean plate shot and using that as your base image.

Final results


  1. One of those 3 guys is really handsome...the other two are...neh.

  2. Yeah, the one with his head down. :-D

  3. Great to meet you tonight at Candlewood Camera.

  4. Thank you. I had a great time. Looking forward to visiting again in the future.


Post a Comment

Post a comment only if it adds to the topic being discussed. Spam, hate or derogatory comments will not be allowed.

Most Popular Posts

Large DIY Diffusion Scrim

One of the most commonly used tools in my photographic arsenal is the all purpose diffusion screen . I use it to soften light, create gradients and light fields or as a background. One of my current favorites is a metal framed 4' x 4' foot scrim with thick white artificial silk made by Matthews. I didn't think I would use it so much, being so large, but having borrowed it from a friend I really came to love it. The downside for me is the price. At just over $100 I couldn't really justify the cost, considering I want at least two of them. Time for a DIY alternative.

DIY Softbox Storage Hanger

If you own a softbox, or two, you understand how bulky and unwieldy they can be. Imagine owning several in different sizes. Storage becomes an issue. One solution is to break them down and store them flat, but that becomes a pain after the first few times struggling to put one of these things together. It is more convenient to just grab one "off the shelf" and go to work. Allocating shelf space seems like such a waste of valuable storage space. In my case I have two square softboxes, three striplights and soon two more rectangular ones. That's a lot of real estate. Time to come up with a storage solution that doesn't require floor space or shelf space. The solution I came up with is a compromise of an idea I originally had of hanging them from the ceiling on pulleys so they would be out of the way until needed. I still like that idea, but for now I will be suspending them from a wire rack shelf system in my studio. Here is what the system looks like.

Don Julio - Hero Shot

For starters, a hero shot is one in which the product is showcased in all its splendor. Careful attention is placed on making the product look its very best. For this shot of Don Julio I knew I wanted to give the bottle some majesty by photographing it from a low angle. That low angle makes the bottle look tall, towering over the viewer and creating a position of dominance. Can't you hear the choir of angels singing in the background? I also knew that I wanted a rich, moody image with lots of darks. I am partial to darker images, which is surprising to most people because the majority of the work I do are images on white backgrounds. But that's another story. I also tried a lifestyle type shot with glasses and lime slices but I wasn't feeling it and ended up scrapping it. Again, that's another story.

Observations on composition - Pieter Bruegel

In this article I am reprinting a critique I published on regarding the painting entitled ' Census at Bethlehem ' by famed painter Pieter Bruegel , who was born in what is now the Netherlands in the 1520s. The first point I would like to say is that you first need to consider both the medium and the time frame of this painting. Being a painting, the artist has a certain advantage of being able to carefully direct the large amount of content presented to the viewer, unlike, say, a photo of opportunity of the street photographer (I strongly believe Pieter would have been the 'street photographer' of his time). Even a studio photographer, with the luxury of space and time, would have a hard time justifying creating such a complex composition. Where you would see this type of visual composition today would be in modern cinema. In particular, period pieces that rely on background elements to "sell the era" .  Secondly, the era in which thi