Here are some useful Linux commands you need if you want to determine what frequencies your computer supports and check if you can use 5G WiFi. This command will show you all the...

Аутор: Иван Благојевић
Радим као L2 техничар у одржавању сервера. Највише времена проводим на Линукс оперативним системима са cPanel/WHM панелима.
Помажем људима да реше проблеме и да одаберу прави хостинг за свој сајт. Овде је моја радна биографија.
Пишем овде у слободно време.
Други текстови са блога:
How to use 5G WiFi if your laptop only supports 2.4 GHz frequency
There is an easy way to enable 5G Wifi on your laptop without buying a new card on your old laptop. The problem with 5G internet is that old network cards don't support it. That...
Best Linux Video Editor for Beginners and all users 2023
For beginners as well as for advanced ones, I recommend Shotcut Linux video editor for all work with video material. Here is my experience and some helpful details. Shotcut is a...
CloudLinux courses at CloudLinux University
I recently received an email notification about CloudLinux courses prepared by CloudLinux University. The mail is more informational in nature, where the user's opinion is still...
XFCE4 Panel question marks problem
If you see question marks in the XFCE4 Panel and you don't need to use the option to change the keyboard and layout, you can easily solve this problem. This problem is caused by...
How to install restricted codecs on MXLinux – MX Codecs installer
MX Codecs installer is a tool for installing restricted deb files on MX Linux. This tool enables the installation of necessary codecs for watching special video formats that are...
The fastest way to select hair and delete the background of the image
The goal is the following: You have a photo from which the person with the hair (along with the hair) should be separated, the background should be deleted and possibly a new background should be set.
The problem is that the hair is usually difficult to select, especially if it is curly hair through which parts of the background of the image can be seen. The possibilities are as follows:
- To spend hours selecting hair by hair and figuring out a way to get rid of the background
- To sacrifice a part of the hair and cut it together with the background
- To read this text to the end and learn how to separate the background from the hair in 2-3 minutes

Hair selection in Photoshop
Open the image on which you want to select the hair and thus separate it from the rest of the image. You can do this using the shortcut Ctrl + O or in the menu at the top File-Open:

The image you open will be displayed as the base layer in the layer palette:

Click on the base layer and make a copy of it using the shortcut Ctrl + J (this copy has no role in our tutorial but can come in handy if you make a mistake):

Select the layer you want to continue working with, and click the Channels tab:

Select the Blue Channel that has the highest contrast:

When the blue channel layer is selected, duplicate it (select it and select duplication in the options on the right click). Open the Levels settings with the keyboard shortcut Ctrl + L.

Move the sliders marked in the image above until you make as much contrast as possible between the background and the hair. Be careful not to lose parts of your hair, that is, make sure that both clear and thinner parts remain visible.

Pay attention to the picture below. You can paint all the internal parts with a black brush (eyes, lighter parts of the hair). The goal is to create an ideal situation for selection.

When everything is set up nicely, hold down the Ctrl key and click on the channel:

Return to the working layers by clicking on the Layers tab:

Select working layer:

Finally, press the Delete key and the background will be deleted (turn off the backup layer, otherwise the background of that layer will still be visible):

The result is a perfectly and quickly eliminated background:

Depending on the conditions and the image you are working with, there is a possibility that you will have to correct some details or that you will not be able to apply this instruction in full. You have probably noticed that the image I used is simple and that it is easy to make a contrast, so it is easy to cut the background. This is not always the case in work.
There are many different instructions on the Internet, so I strongly recommend that you try a few to gather some experience and know when to apply them, or when you need to combine tricks from several instructions and apply them in your work.
I plan to write a few more similar instructions on the topic of selection and trimming, so stop by this blog from time to time.

Аутор: Иван Благојевић
Радим као L2 техничка подршка у одржавању хостинга (дељени и наменски хостинг сервери). Добар део времена проводим на Линукс оперативним системима са cPanel/WHM панелима.
Пишем овде у слободно време.
Други текстови са блога:

How to check my laptop WiFi frequency on Linux 2023
Here are some useful Linux commands you need if you want to determine what frequencies your computer supports and check if you can use 5G WiFi. This command will show you all the channels supported by your network card and on which frequency they work. Let's first...

How to use 5G WiFi if your laptop only supports 2.4 GHz frequency
There is an easy way to enable 5G Wifi on your laptop without buying a new card on your old laptop. The problem with 5G internet is that old network cards don't support it. That is, there are network cards that only support a frequency of up to 2.4 GHz, and to work...

Best Linux Video Editor for Beginners and all users 2023
For beginners as well as for advanced ones, I recommend Shotcut Linux video editor for all work with video material. Here is my experience and some helpful details. Shotcut is a free, open source, cross-platform video editor for Windows, Mac and Linux. Major features...

CloudLinux courses at CloudLinux University
I recently received an email notification about CloudLinux courses prepared by CloudLinux University. The mail is more informational in nature, where the user's opinion is still being researched. CloudLinux courses will definitely take off, but CloudLinux probably...

XFCE4 Panel question marks problem
If you see question marks in the XFCE4 Panel and you don't need to use the option to change the keyboard and layout, you can easily solve this problem. This problem is caused by a package called fbxkb: Right-click these question marks in the XFCE4 panel and select the...

How to install restricted codecs on MXLinux – MX Codecs installer
MX Codecs installer is a tool for installing restricted deb files on MX Linux. This tool enables the installation of necessary codecs for watching special video formats that are protected or require special codecs. MX Codecs is already automatically installed with MX...