Wednesday, 30 December 2015

How to Create Masks of Transparent Elements in Photoshop


Selections are an essential part of any photo editing workflow, but often, selections aren't as straight-forward as they might seem. In this tutorial we will explain how to make a selection of a glass that includes transparent elements. Let's get started!
The following assets were used during the production of this tutorial.
Selections are an essential part of the image editing process in Photoshop. The process of making a selection is easy but sometimes transparent areas can make the process a bit more complicated. For these types of project, the pen tool is not sufficient. To select areas with a variable level of transparency we need a tool or command which will let us manipulate the brightness information of the color channels of that image. Because we are not only interested in creating a simple cut-out, rather we are more interested in creating a mask, where we can store variable level of brightness information for defining that complex level of transparency. As a channel is just a grayscale image we can use that channel effectively to create a mask, because a mask also uses grayscale (pure white=100% opaque and pure black= 100% transparent) to store transparency information.

One of the major advantages of having access to the separate channels in Photoshop is the ability to make selections. You can use individual channels to make different selections in the image. When you want to select a specific item in the image, use the color channels that provide the greatest contrast around the edges of that item. So let’s start the initial planning phase.

This is the original image. Though this is a CMYK image, same process will work in case of an RGB image. Only difference will be in the Channels panel. Instead of four color channels and one composite channel, there will be three color channels and one composite channel in the RGB image. The objective of this tutorial is to remove the black portion but to keep the glass, water, bubbles and the reflection below the glass. So we can use it on any other background (Solid color or photo). For this tutorial we will use Apply Image command (Image > Apply Image).

The Apply Image command lets you blend one image’s layer and channel with a layer and channel of the active image. But remember the pixel dimensions of the images must match for image names to appear in the Apply Image dialog box. But here we are not using two images. We are blending the black channel copy with the black channel copy itself. But the power of the Apply Image is hiding within the Target section. Here you can specify a blend mode or blending type which you want to use during the Apply Image blend.

Open the file in Photoshop. Then in the Channels panel examine the channels for a channel with good contrast. Finding a channel with good contrast is essential for good selection.

Here the black channel is showing good contrast between the glass and the background.

Duplicate the black channel by dragging it over the ‘create new channel’ icon below the Channels Panel. You can also right click on the black channel and select duplicate channel.

Then select the black channel copy and Image > Apply Image.

First blend one time with Multiply mode to increase black and in this process convert from the background any area to black which is gray. But reduce the opacity (within the Target section) amount to 50% to create a blend which is not too strong. Otherwise we might remove some white areas, as they are not pure white.

The Multiply blend mode looks at the color information in each channel and multiplies the base color by the blend color. The resultant color is always a darker color. Multiplying any color with black produces black. By using the Multiply blend mode we are removing any grey portion from the background.

Then blend two times with Overlay blend to increase white. Now we can easily select the white area. Our goal here is to create an effective, fast and acceptable mask with this process. This time use 100% Opacity in the blending area.

The Overlay blend mode multiplies or screens the colors, depending on the base color. The base color is not replaced, but mixed with the blend color to reflect the lightness or darkness of the original color. White areas become brighter and black areas become darker. By using the Overlay blend mode we are increasing the strength of the white portion as we want to keep the white portion but mask out the black portion in the final image.

You can still tweak the black channel copy by using a brush and paint with white or black color. Paint with white to keep image areas and paint with black to remove or mask out portion. White denotes opaqueness and black denotes transparency within a channel.

Load the black channel copy as a selection by either Command/Ctrl-click on the channel or click the first button below the channels panel, which is load channel as a selection.

Then go to the Layers panel and duplicate the background layer by dragging it over the create new layer button below the layers panel. You can also right click on the background layer and select Duplicate Layer.

Then target the new layer (Background copy) by left clicking on it once. Selection still active, click on mask icon below the Layers panel to create a mask.

Now create a new blank layer below and fill it with either red or blue. Now check the quality of the mask. You will find that within the mask there are few grey areas.

There are two processes to remove this unwanted grey area. Although first process described below will give you the best output, but still let’s explore both of them.

Process 1: Change the blend mode of background copy layer to Lighten in order to remove grey area.

Lighten blend mode looks at the color information in each channel and pixels darker than the blend colors are replaced, and pixels lighter than the blend color do not change. As a result dark grey pixels removed.

Process 2: Command/Ctrl-click on the background copy mask thumbnail to load the mask as a selection. You can also load the selection from the black channel copy.

Then click on the Adjustment layer icon below the Layers panel.

This will create a new Levels Adjustment layer.

Then in the levels dialogue box first drag the midtone input slider (middle one) and then the highlight input slider (right one) towards left to remove grey area or rather converts grey into white.

After applying Lighten blend mode, if you check closely you will find that there are a few broken portions within the white area. You can use the Clone Stamp Tool to fix these areas.

That’s it. You can use the same technique to select complex objects with variable level of transparency. Below is the before and after version.

This is the final version.


Swap Faces With Photoshop



Let's "face" it, at some point you have thought about using Photoshop to place one person's face on another person's body. In this tutorial,I will explain how to do this using a few of Photoshop's basic features. Let's get started!

Monday, 28 December 2015

How to create a glamour style composition using patterns and masks

In today’s tutorial you will learn how to give a photo a complete glamour style using patterns and masks in Adobe Photoshop. Layered PSD file included. Let’s get started!

Final Image Preview

 

Start working by finding a stock photo with a model represented on it, I used this photo from deviantart. I would like to thank the author of this photo: - See more at: http://designstacks.net/how-to-create-a-glamour-style-composition-using-patterns-and-masks#sthash.1wHTCGAA.dpuf




























Start working by finding a stock photo with a model represented on it, I used this photo from deviantart. I would like to thank the author of this photo.




























Next we’ll represent a pattern. In this case we need a new file (File>New) with the size 69px by 69px (RGB color mode) at a resolution of 100 pixels/inch and apply here the Ellipse Tool (U) to represent three ellipses. The pattern doesn’t have a background.
























Set Fill to 0% for this layer and click Add a layer style icon from bottom part of the Layers panel to select Stroke.























We’ve got the next result:





















Using the same tool, it’s possible to represent the next ellipse:





















Set Fill to 0% for this layer and go to Layer Style>Stroke























We’ve got the next effect:























Continue working by applying the Ellipse Tool (U) to represent the next ellipse:





















Set Fill to 0% for this layer and click Add a layer style icon from bottom part of the Layers panel to select Stroke.























 We’ve got the next pattern:





















Put together the ellipses layers into one single layer. In this case press CTRL button, select the layers in Layer panel and finally press CTRL+E to Merge Down. Choose Edit > Define Pattern. Enter a name for the pattern in the Pattern Name dialog box.

Get back to the girl’s document and create a new layer. Choose Edit > Fill to fill the new layer. In the Fill dialog box, for Use, choose Pattern, select recent created pattern from the pop-up panel, and click OK.




























Set Fill to 30% for this layer in Layers panel. Using the Eraser Tool (E), try to erase those zones on the face demonstrated on the next picture:




























Set the Blending mode to Overlay for this layer.




























Find a stock photo with an electric guitar:

























Remove the background using your favorite tools like Pen Tool (P), Magic Wand Tool (W), Magnetic Lasso (L) or even a simple Filter>Extract and insert it on a new layer in our main document. The appropriate corrections on its placement and sizes may be done with the Free Transform (Ctrl+T) command.




























Click on the same layer on the bottom part of the Layers panel on Add layer mask icon and choose a Soft Round brush of black color (Opacity 50%)
























Use this brush to paint in the mask to hide the guitar the same way indicated below:




























Make a copy of the layer containing the electric guitar and select then the Free Transform (Ctrl+T) command to place the copy as it is shown on the next image:




























Next we need to add the mask on the copy’s layer too, the same way we did with the very first guitar. Choose in this case a Soft Round brush of black color (Opacity 50%) to hide the guitar the same way as below:




























Set the Blending mode to Screen for both layers with guitar.




























Create a new layer and select here a Soft Round brush of white color.























Use this brush to represent many illuminated spots of different diameter:




























Click Add a layer style icon from bottom part of the Layers panel to select Outer Glow.























We’ve got the next result:




























Choose again the Ellipse Tool (U) to represent a small ellipse: