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


Comments

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

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

    ReplyDelete
  3. Great to meet you tonight at Candlewood Camera.

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

    ReplyDelete

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

Upgrade Merry-go-round

Canon's release of their entry level full framed camera, the 6D, was a heralded event that received its fair share of anticipation, trepidation and arguments. I for one was looking forward to its arrival as I was in the market for a FF sensor but couldn't justify the cost of a 5D or 1D. Plus the fact that they have more features than I really need. When it came out I was one of the early buyers down at Milford Photo and before long I was unwrapping my new toy. Not soon after I discovered one of the hidden pitfalls of buying new gear; compatibility. In particular it was the compatibility with Adobe's Lightroom 3 which did not support the new 6D. " No problem, " I thought, " I'll just upgrade to LR4. " After all, the newest offering from Adobe promised some nice features I would appreciate. And this is where I got on the merry-go-round.

The Decisive Moment - a brief discussion

Behind the Gare Saint-Lazare, 1932 “Making a photograph means recognising, all at once and in a fraction of a second, an event and the exact organisation of the visually perceived forms that express and signify that event. It means aligning the head, the eye and the heart along the same line of sight. It’s a way of living.” Henri Cartier-Bresson Henri Cartier-Bresson (1908-2004) is credited for the expression, the decisive moment . The image at right, Behind the Gare Saint-Lazare , has become one of the most iconic of his images to represent that expression because it succinctly captures, in a single frame, the whole of his teachings. While there have been many discussions both casual and scholarly, like the image at right, his teachings has been oversimplified and distilled down to a short definition that, to me, has lost a lot of its original meaning or, as in some cases, completely missing the mark. Rather than getting into a lengthy dissertation on what Bresson consider...

Must have non-DIY photo equipment

When building up a collection of equipment for either a professional studio or a serious hobby studio, price is always a consideration. I am a big proponent to DIY equipment, specially if it can be crafted in a way that doesn't look home made. However, some things just can't be home made that a well stocked studio can't do without. Here is a small list of some of those little things you will always find yourself reaching for when doing studio work. Keep in mind that this is by no means an exhaustive list and there are some useable items I'll surely have forgotten to include. Feel free to add to the list in the comments section below.

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.