Home > Article > Web Front-end > Photoshop-Mask
Photoshop mask principle:
Photoshop mask converts different grayscale color values into different transparency, and applies it to the layer where it is located, so that different parts of the layer Transparency changes accordingly. Black is completely transparent and white is completely opaque.
Advantages of Photoshop masks:
1. It is easy to modify and will not be affected by Use eraser or cut to delete and cause irreversible regret;
2. Different filters can be used to produce some unexpected special effects;
3. Any grayscale image can be used as a mask plate.
Main functions of Photoshop masks:
1. Cutout;
2. Create the edge fading effect of the image;
3. Fusion between layers.
In this article we introduce how to use Photoshop masks to cut out images.
1. Open a picture in Photoshop;
2. First select the part that needs to be cut out. Due to time constraints, I used a simpler car and selected it with the pen (pen, path) tool;
3. Press ctrl+Enter (or press ctrl+click the path in the path panel; or click the "dashed circle" button below the panel), convert the path to a selection, and feather it appropriately (I Feather 1 pixel);
4. Double-click the background layer, confirm (or press Alt + double-click the mouse), and convert it to a normal layer;
In the previous steps, feathering is to make the edges of the cut out image smoother , you can decide the size by yourself, it can’t be too big, usually below 3 images, it depends on the size of your picture. Convert the background layer to a normal layer because masks cannot be applied to the background layer. Then, the key step arrives:
5. Keep the selection floating and click the "Add layer mask" button under the layer panel;
## The rough outline is cut out. Now I find that some parts have not been completely cut out, which is okay. At this time, the advantages of the template can be reflected.
Click on the mask (note that the symbol in front of the layer is different when the mask is selected than when the layer is selected, so be sure to make sure you are working on the layer and not on the mask before modifying), and click Select the unnecessary area, fill it with black on the mask, and the part will be trapped;
Now we find that the windshield of the car is not transparent (when the picture you cut out is merged with other pictures It will be very unrealistic). According to the mask principle, different grayscales of the mask affect the different transparency of the layer. We can use a brush or other tools to draw different levels of gray on the mask to adjust it.
Complete as follows:
In addition, when cutting out more complex pictures, such as human hair, plant branches and leaves, etc., you can convert the picture to different color modes such as CMYK or LAB to find a Adjust the Levels of the channel with the strongest contrast and clearest edges, then apply it to the mask, and then make further modifications.