Sunday, August 16, 2009

journey_in_post_processing

kiril-2

A forum I participate in expressed interest in my workflow of post processing my portraits. This was a recent image I was happy with, so I decided to document my workflow.

For this shot, I worked the way I normally do, in that I find a location first, then arrange a subject and clothing and engineer a lighting setup. I also work backwards from getting my ambient exposure first, and only then adding in flash. My work qualifies as portraiture, but my subjects and their faces are always much smaller in the frame than pure portraiture. I like using interesting environments as framing and compositional elements.

Sometimes this requires compositing, because the environment only has a specific feeling at a time of day where I can't have a model in a helicopter waiting to be drop-flown in.

For this particular shot, I saw this doorway while bicycling past one night, and it just had this timeless, slightly victorian feel to me. I made a trip back out a few nights later at the right time period (it's boring during the day) and worked out which lens I wanted to use (I almost always use my 35mm for these type of shots, but I wanted to see if the extra compression of 50 would still get the door in, it didn't) and how far back I need to be, standing or crouched, and where I would put the model to get them the size I want and to be frame properly.

Straight out of the camera original:



First things first. I try to work from a top down approach. Largest changes first, especially things that will move pixels. I like to work in a non-destructive workflow, with layer effects, which means I use a lot of masks. Moving pixels after making a mask, requires you to either re-paint the mask, or to move a merged copy of the previous layers, which is destructive. That means my first goal is to remove all the crap that dates this as a photo from 2009. Garbage cans, metal pipes, placards, etc, all have to go. I purposefully lined up the image to be centered and completely parallel to the film plane. This means I can use uncluttered areas of the left side to cover up clutter on the right.

So I duplicate the whole layer to a new layer, and flip it from right to left:



Next I apply a mask, and invert it. This hides the entire layer. I am now free to reveal the layer by painting into the mask. The next image shows my mask, overlayed onto the original layer. The white parts are where I've revealed the flipped image, essentially covering what's underneath. To recap, I'm covering the original image, with the flipped image, using a mask.



This is just that duplicated and flipped layer, showing only what the mask is allowing to be revealed.



Here is the combination of that flipped info, and the original layer:



This is all the info I can salvage easily. Now I have to clean up manually. I create a new blank layer, use the clone stamp tool, set to "sample all layers" otherwise it can't clone because it's on an empty layer. I now grab info from nearby areas that will cover the remaining metal bits easily. I do this on a new layer, because the normally end up either too bright, or too dark to match the surrounding materials seamlessly, so by having them on a new layer, I can just marquee select and use dodge/burn, exposure, or curves to get it to where it matches the value and color much better. If it still shows some borders, then I break out the healing brush to properly blend together, but this image didn't need it. This is just that empty layer with the clone stamped bits:



And the result of this layer on top of the previous ones:



Next I do some sharpening, using the high pass technique I've posted before, as well as a smart sharpen. The final background plate:



Once I arranged the model and shoot time, we headed out and I took the photo. It was in the same location, but it was much earlier in the day (model was limited on when he could come). This was both a blessing and a curse. The good part is that the higher ambient level opened up the shadows on his face, and it's easy to darken to match the original. The bad news is that right out of the camera, it didn't match at all.



Large things first again. On the subject, the large things are always proportional changes. I often use the liquify brush to lengthen or compress, widen shoulders, narrow waists, etc. For this, I straightened his stance, and used liquify to bring his waist area a bit narrower. I also used some dodge/burn to bring out his pectoral muscles a bit more.



Next, I didn't like how sloppy the hang of his jacket was. It made him look really wide, and it was visually too heavy. I used the lasso tool to grab the hanging portions, and lifted them to a new layer (you can do this with ctrl+j) Then I used the warp transform to make it sit snugger to his body, while still looking like it's hanging. This left some gaps which I filled with just the paint brush tool, color picking from the surrounding fabric and just connecting the gap. Here is just that layer:



Here it is showing on the layer. You can still see the original jacket showing, but it's ok, because I will be masking the background in over top. I will just make it so the mask covers the old jacket line.



Now I bring in the background plate, and position it over the environment correctly. I have made a mask the shape of the subject to hide it where he is. This is why I made all the changes to him first. If I had made this mask, then tried to make his waist thinner, I'd have to repaint the mask, or I'd need to be editing a flattened layer for no reason:



Two things are immediately apparent. First is that the plate isn't wide enough, second is that the color is way off between the two layers. I started by fixing the background to be wide enough. I duplicated the background plate, and killed the mask. Then I used photoshop's "content aware scale" to make the background plate wide enough. Then I put it below the previous background plate, mask away the center really quickly, because all this needs to do is extend the edges:



Their was a seam between the original un-stretched background, and this one underneath. I just painted on the edges of the mask on the top layer to get rid of it and seamlessly blend the two. Now I have the unstretched background with the tight mask around the subject on the top, and the stretched version below:



Now I want to match the lighting on the subject to match the background. I made a new exposure adjustment layer with -4 exposure on it. I put this layer above the subject, but below the background. Now I added a mask, and only painted on it where the subject needed darkening.



This is the mask of the exposure layer. Full white darkens -4 stops, full black does nothing. I left this layer totally away from the face, to keep the night lighting from the flash, and the fill from the ambient, but on the legs, I added it all over, but mostly to the shadow side of the wrinkles and the leg, where the flash didn't reach. This way it simulates what the lighting would be had the ambient actually been as dark as the background. This layer mask probably was the most time intensive of the steps, because I needed the border from leg to cobblestone to be perfect. If it bled onto the pants, I got a black cartoony line, and if it bled onto the cobblestones, they became too bright. I ended up making a new alpha layer with the magic lasso tool to have an easy selection that would give mea nice border:



There was still too much of a separation between the cobblestones and the stairs. It looked too bright to look natural. Check the image 16, two images back. I added another exposure layer, with -1.5 stops, and just gave a quick brush stroke into the mask where the cobblestone meets the stairs, keeping the stroke off the legs, in order to darken the cobblestone where it meets the stairs.



Now the lighting matches, but the color tone is still way off. I added a color balance adjustment layer,which lets you tint your shadows, midtones, and highlights. It's good for split toning, and especially matching mixed ambient levels like this. Once again this is over the subject, and under the background



The highlights I made a bit more yellow, the midtones more blue/green, and the shadows a blueish purple with some green in it. I knew I needed bluer shadows and warmer highlights, but the fine adjustments I had to eyeball till they looked correct, adding or removing one point on these sliders till it matched.



Next I didn't like how the stairs were so bright behind his legs, it made it feel a bit cutout. I made yet another exposure layer, with -1 stop exposure, and did a quick soft paint brush behind his legs to darken the stairs. This layer was set above the background as a clipping layer. This means it can only affect the layer right below it. It makes it so I can be sloppy with the mask, and not worry about it changing the exposure of the subject.



And finally a quick progression gif because some of the stages are minor enough that you really have to see it change over top of the previous version:



Tutorials related to this post:

Masking: http://www.poopinmymouth.com/tutorial/masks.htm

Sharpening: http://mr-chompers.blogspot.com/2009/04/sharpening.html

Wednesday, August 12, 2009

kiril_portraits

kiril-1

Settings: The background was shot separately with ambient about 2 stops below neutral grey for a dark feel and still allowing the lamps to not blow out. In the subject's image, Ambient is 1 stop below neutral grey, and flash is 1.5 stops above neutral grey.

I've posted the original setting, and a closeup of this shot for the previous masking tricks post, but here is the full image.

Having scouted the door location, I knew I wanted to use a male model, in a dress coat. I asked around for my friends, trying to find someone with a look I could use, who also owned a dress jacket with collars that could be held up. I used google images of pea coats and chesterfields when asking people if they owned what I was after.

If I had the full budget of a paid shoot, I would have scouted for a Hugo Boss grey or black double breasted pea coat. I also wanted a double layered undershirt, something white with a low V-neck showing the upper pectorals, and then a button down blue shirt. However when putting together a shoot with a budget of zero monies, you work with what you have.

We arrived at the location, and I set up while the model changed into the wardrobe (it was far too hot out to bicycle there already dressed). I had already scouted the location, so I knew I was going to use my 35mm lens, I knew about where I'd stand as well. The evening wasn't dim enough yet for them to have turned on the lamps, but in hind sight it worked well, because the ambient provided a nice fill on his face on the non flash side that would have been lacking if it was closer to dark.

kiril-3

Settings: Ambient is one stop below neutral grey. Flash is 1.5 stops above neutral grey.


In this photo you can see what the ambient levels were like at the time of the shooting. The flash in all these images is in a 30x40 cm softbox with a 20 degree grid. In this image, it is coming from camera left, through a fabric grid to keep the light only on his face, and not on the door or his knee. You'll notice in all the images the flash is set to a narrow lighting pattern, where the flash hits the front of his face, but leaves the side of the face we can see in shadow. I like this lighting pattern best for how it reveals facial details.

kiril-2

Settings: The background was shot separately with ambient about 2 stops below neutral grey for a dark feel and still allowing the lamps to not blow out. In the subject's image, Ambient is 1 stop below neutral grey, and flash is 1.5 stops above neutral grey.

This image uses the same settings as the first, I've just moved the subject further back, and gotten down on my knees instead of taking at eye level. The background was composited in. The bricks on the ground are from the subject's image, and the background plate had to be extended as it wasn't wide enough. I used photoshops content aware resizing to extend the brick walls without ruining the windows or the doorway. Then I did some reshaping of the jacket, as it was too loose, and then used dodge and burn to give him a bit more obvious musculature. I also slimmed the waist a bit. The hardest part was getting the ambient levels of the subject to match the background, as well as the color toning. The ambient was still quite neutral, whereas on the background plate it had a ton of blue and a bit of purple in the shadows. I used an exposure layer with lots of masking to darken the non flash lit parts to match. Then I used a color balance and a photo filter to tone the ambient to match the background. In the top image, I used Photoshop's Lens Blur filter to add depth of field to the background so that the subject would stand out a bit more.

Before and After:

Monday, August 10, 2009

masking_trick

Masking or compositing a subject onto a background can be really difficult. Too sharp and it looks cut out, too blurry and it looks wrong. I've figured out a neat trick that helps blend the foreground and background. If you're not familiar with basic masking techniques, read my masking primer here.

Click these for full resolution:



Original. Notice background is reasonably sharp, and the edge between jacket and background is rather crisp.



In this one I've brought in a new background. It's the same location, just from a previous shoot where the light was better and the lamps were turned on. I've masked out the model so that the background lines up with his silhouette. The mask is accurate, but it's a bit too crisp, even using the blur tool to smooth the edge a bit.



For this version, I created a merged layer, it's a layer on top of all the previous layers that contains a merged copy of all visible layers. You can do this with ctrl+alt+shft+e Then I ran it through filters > blur > lens blur and choose an 8 aperture blur, and blurred it only 10 units, just enough so that the border between subject and background became natural. The resolution of your image will require different settings to get this accurate.



For this final, I added a mask to the lens blurred layer, and inverted it. This makes all of the layer hidden. Now using a very soft edged brush, I went around just the border where the subject changes to background, and revealed the lens blurred layer. This now gives a much more natural transition where it looks like the edge of the subject is mixing optically with the background.