Mask tutorial
Creating a template with a semi-transparent color fill
Let’s build a simple template where we’ll use several color layers and a dynamic mask based on a user photo, to create an effect like shown below:
The resulting template can be downloaded here.
Step # 1
Go to the
menu, select then choose the template type and universal orientation. Name your project and select where you want to save it.Step # 2
Go to Photoshop. Place the graphic layers above the frame region in numerical sequence. Delete the Background layer, as we won’t need it.
Step # 3
Add color fill layers. To do so, create a new layer in each Graphic layer group of layers.
Step # 4
Fill the layers with colors with the parameters given below:
Graphic layer 1 | Graphic layer 2 | Graphic layer 3 |
---|---|---|
Color: #feb067 Blending mode: Screen Opacity: 50% |
Color: #b945cd Blending mode: Overlay Opacity: 30% |
Color: Any color Blending mode: Screen Opacity: 50% Effect: Gradient (default parameters) |
Go back to the Template Creator and reparse your PSD document.
Step # 5
As can be seen, the photo has undergone some color correction, but it looks too light and washy now, mainly due to the orange-colored graphic layer on top Graphic layer 1.
Let us try to fix it by adding a dynamic mask based on a user photo to Graphic layer 1.
As you may know, a mask based on a user photo is created by converting an original image to grayscale mode and the resulting image is then used as a layer mask.
Step # 6
The resulting image looks a bit better after we have applied a dynamic mask based on a user photo, but the picture still looks too light and washy in places.
Let’s adjust the mask so that it applies mainly to the face. To do so, set eroding to 3. To make the mask borders look smoother, set the smooth radius to 5.
Step # 7
After we’ve adjusted eroding and smooth radius settings, the resulting picture looks almost perfect.
Please note that changing eroding and smooth radius parameters may lead to unwanted results when you work with a mask based on a user photo.
Step # 8
Now all we have to do is add some contrast to the resulting image. To do so, double-click the frame region, open the Correction filter. Change the value of the parameter from 5 to 8.
dialog and add theFinally, we got the result we wanted.
The project with the resulting sample template can be downloaded here.
Creating a template with neon flares effect
Let's create a template that adds neon flares to images like shown below:
All graphics that you'll need to build this template can be downloaded here. The resulting template is available at this link.
As can be seen from the 'after' image, the template extracts a figure from a user photo, puts it on a new background and adds neon flares to
Below is a step-by-step guide on how to achieve this effect.
Step # 1
Create a project in the Template Creator. To do so, go to the "
" menu and select " ". Select the " " template type and " " orientation in the dialog window. Then set the path to your project and its name.Step # 2
In Photoshop, add the background image into the subgroup named Graphic Layer 1, then rename the subgroup to Background for convenience. Reparse PSD.
Step # 3
To get a picture with a figure placed on the chosen background, apply a dynamic mask based on a figure to the frame region. This is the result you are going to get:
Step # 4
Now we need to add some filters to the user photo to make it look natural enough with the new background. To do so, double-click the frame region to open the filter settings dialog and add the following filters:
- Neural Filter (Neural filter name - , - );
- Adjustments ( - , - );
- Warm ( - ).
This is what the picture will look like after you have applied all the filters:
Step # 5
To achieve the desired result, we need to add neon flares to the user photo. As can be seen, there are two prevailing colors in the background image, cyan and magenta. We'll use these colors as flares in the user photo.
To add neon lines to the user photo, use the Neuro-based edge detection filter (detailing: ). After you've applied this filter to the photo, you will get an image with edges highlighted in white on a black background. We'll use this resulting image as a mask later on.
If we add this filter to the current frame region, together with the filters mentioned in the previous step, the result will be unsatisfactory.
To improve the situation, create a new frame region.
Place the new frame region above the existing one and rename the layers for convenience (SQ Lines, SQ Photo).
Reparse PSD and apply the Neuro-based edge detection filter to the SQ Lines frame region. Make sure that this filter has not been applied to the SQ Photo layer.
The result is now similar to what we have seen before, but now we can manage the frame region without the concern of affecting the main image.
Step # 6
Let’s now add colors to the template. To do so, go to Photoshop and create a new layer in the Graphic Layer 3 subgroup.
Use the Eyedropper tool to pick up a sample of the magenta color (#af05a9) from the background image. Then fill the layer with this color using the Paint Bucket tool.
Perform the same actions with the Graphic Layer 2 subgroup, but use the cyan color (#68c5fe) this time. Rename the subgroups using the layer colors as names, then temporarily hide the cyan color layer and reparse PSD.
Step # 7
Go back to the Template Creator. Apply a user photo dynamic mask based on the "SQ Lines" frame region to the "Magenta " layer. To apply the mask to the figure only, build a figure mask based on the " SQ Photo" frame region on the same layer. Leave the mask compositing mode (multiply) unchanged.
If we build a user photo dynamic mask based on a frame region with the "Neuro-based edge detection" filter applied to it, then the result will be converted to grayscale, and grayscale colors will be used to build the mask.
As can be seen, we have an image with magenta lines on the black background, drawn on a figure that is taken from a user photo. Now we need to undo the effect of applying the "Neuro-based edge detection" filter to the photo, so that only magenta lines are left visible. To do so, go to the "SQ Lines" layer in Photoshop and make it transparent.
Reparse the layer and check the result.
Step # 8
Now let’s add cyan flares into the template. To do so, go to the Cyan layer and apply a user photo dynamic mas to it, as well. But this time it should be based on the SQ Photo frame region.
Let’s see in detail how a mask is built in this case.
To apply the mask only to areas free from the result of the magenta mask from the previous step, we need to invert it, and then build an additional figure mask based on the "SQ Lines" frame region (this needs to be done in order to limit the mask to the figure boundaries). Mask compositing modes should be left unchanged, as in the previous step
As you remember, we hid the visibility of the cyan layer earlier in Photoshop. Now let's go back and make it visible again, then reparse the layers and process a test image.
As a result, we now have an image with a figure filled with the cyan color with purple boundaries.
Step # 9
To achieve the desired effect, we need to reduce the area filled with cyan and make the magenta lines more visible, as well as make the edges smoother.
To do so, open the Dynamic mask generation settings dialog, select the " user photo mask" tab and adjust eroding and smooth radius values. Set " Eroding width" to -2 and Smooth radius to 1,5 for the "SQ Lines" frame region, which is in charge of the magenta lines. As for the "SQ Photo" frame region, set Eroding width to -3 and Smooth radius to 3.
Please note that changing the "eroding width" and "smooth radius" values while working with a user photo mask may lead to unwanted results.
Step # 10
Finally, all we need to do is adjust the blending modes for the graphic layers. Go to Photoshop and set the blending mode to Screen and opacity to 70% for the "Magent " subgroup. As for the "Cyan" subgroup, set the blending mode to Soft Light and leave the opacity settings unchanged.
Reparse PSD and process your photo.
You can download the project with the resulting sample template here.
Creating a template with a sticker dynamic mask
Let’s take a look at the process of creating a template where a certain user photo is added into the center of a figure found in the first user photo, with a gradient transition from one to the other.
All graphics that you’ll need to create this template can be downloaded here. Resulting template is available at this link.
This is the effect we are going to achieve:
Step # 1
Open the Template Creator. Go to the File menu and select Create Project.
Choose the Frame template type and create a new PSD file with a universal orientation in the dialog window. Select where you want to save your project.
The Template Creator will generate the structure of layers necessary for the template to work correctly.
Step # 2
Since we want to use 2 different user photos in this template, it is clear that we need 2 user photo regions. Add another frame region via the Insert menu.
Go to Photoshop. Delete unnecessary layers and rename the frame regions as SQ Photo 1 and SQ Photo 2.
Go back to the Template Creator and reparse PSD. To process several user photos at the same time, it is necessary to change the image index in one of the user photo regions. Select the SQ Photo 2 layer and change the image index from 0 to 1 in the property grid at the bottom.
The simplest thing that comes to mind in order to achieve the desired effect is to resize one user photo region and position it in the center of the other user photo region.
Let's see what we will get in this case.
This result may look similar to what we want to get, however it is not satisfactory in many respects. Even if the figure in SQ Photo 1 is shifted or resized, the design loses its essence.
To avoid this, we need a solution that will automatically position the SQ Photo 2 layer in the desired place, regardless of the scale and position of the figure in SQ Photo 1.
Step # 3
Let's use the Dynamic position tool to position the layer in the bounding box of the dynamic mask.
Here is an example of how SQ Photo 2 is positioned relative to the figure found in SQ Photo 1:
As you remember, our task is to position SQ Photo 2 on the body of the figure found in SQ Photo 1. None of the existing standard masks can produce the desired result. The only acceptable way is to position a photo using a sticker.
Select Insert > Sticker to add a layer with a sticker. For the sticker to work, it needs the Rasterization filter in the user photo region, so we will add another user photo region called SQ for the sticker.
We could add the Rasterization filter to one of the existing user photo regions, but since the sticker in our template is an auxiliary element used for technical purposes only, we will place it in a separate user photo region and make it transparent, so that the graphics of the sticker does not interfere with the template design.
Go to Photoshop. In the Sticker 0 layer group, delete the provisional layer and add a new layer containing an oval shape. This shape will allow us to insert almost any user photo as naturally as possible. To create a smooth transition effect, make the edges of the shape blurry. The color of the shape is absolutely irrelevant.
The resulting image is available at this link.
Go to the Template Creator and reparse PSD.
Step # 4
Let's move on to sticker positioning. To access the sticker position settings in the Template Creator, right-click on the Sticker 0 layer, select Add rasterization > SQ for sticker. The sticker position editor will open.
Position the sticker on the chest. Go to the menu and select Positioning by the object > Positioning by the human skeleton.
Next, you need to specify marker points. To do so, select On the corpus in the Typical bindings dropdown menu.
After you have configured the settings as described above, the sticker will be positioned as follows:
Step # 5
Let us now position the SQ Photo 2 layer on the figure's body. To do so, go to the Dynamic position editor and build the position based on the SQ for sticker user photo region (select the 'sticker' mask type).
Reparse PSD and process a test photo.
Step # 6
All we have to do now is make a smooth transition from one image to the other. In Step # 4 we smoothed the edges of the sticker. At this stage, this fact plays a decisive role. Add a sticker mask built based on the SQ for sticker user photo region to the SQ Photo 2 layer.
When this mask is being built, it ignores all colors of the original sticker and takes into account only the transparency of the pixels. This fact will let us create smooth transition from one photo to the other.
As a result of all manipulations, we have finally achieved the desired effect. You can download the ready-made project here.