How to make a white background transparent in paint. Master class "how to remove the white background from images." Making a transparent background in the picture

Dear friends, I am glad to welcome you to the SITE. Today, I will introduce you to a big lesson - HOW TO MAKE A PICTURE WITH AN INVISIBLE BACKGROUND. And although the lesson is not large and simple, it is nevertheless important. Very often there is a need to insert a picture into a picture and then these skills will be indispensable.

Open the program Paintand insert there the photo from which you need to remove the background. And one more small digression, I use the program Paint. net, not justPaint. Therefore, there may not be much difference in the screenshots. The programs are almost the same, but PAINT. nethas more features and conveniences like a more recent version. If you wish, you can download it from the Internet, the program is free. I wrote how to do this in the article - HOW TO DOWNLOAD A PROGRAM CORRECTLY AND FAST. All programs are downloaded according to the same principle.

And so, they openedPaintand inserted a picture. I should note that in the simplest first programs Paintthis function does not exist. Therefore, we immediately turn to the program Paint. NET, based on it in the future we will get acquainted with the basics of Photoshop.

Now we find a tool called “Magic Wand” (1) Click on it and then on the area that needs to be removed. I have a white background. The area that will be cleaned has a blue background. Now click – Delete(Erase) on the keyboard and the background disappeared. In the program, the invisible background will be in the form of squares.

Now you need to save the image. How to do this, I have already written many times. For those who forgot, you can read the article - SIGNING THE PHOTO FOR THE BEST . The only thing you need to do when saving is to change the image format. Non-transparent pictures, usually in the format JPEG, but we need transparent, for example PNG, it's universal. Make it a rule to use this format for all your work - you can’t go wrong.

How to change the format? After the program suggests changing the name, before saving, just below, you will see the format. Click on the arrow, many views will open, find the one you need and click. Save everything. The program will offer you several further operations, agree with all of them. This is merging layers and so on.

As a result, we got a picture that can be inserted onto any background. Let's say like this.

Allows you to use layers and blending modes as a basis for composing your images.

Layers

In order to try to understand “what image layers are,” let’s look at two photographs. One of them will be used as the background (or bottom layer), and the other will be used as the first layer placed above the background:

You can think of "layers" as multiple transparent slides placed in one stack. Paint.NET displays this stack of slides as if you were looking at them from above. At the same time, there is no perspective (distant layers do not decrease). In order to better understand how this works, let's look at our photo layers from the side, and not from above:

Pixels and transparency

Each layer in Paint.NET is made up of pixels that are saved in the RGBA format. The "RGB" part of the acronym refers to the colors (red, green and blue) used to convey color intensity. The “A” (Alpha) part denotes the variable used to store information about the transparency of the pixel. Alpha can range from 0 (fully transparent) to 255 (fully opaque). Other programs may use boundaries ranging from 0 to 100%.

If the pixel is transparent, then instead of its color, the color of the pixel located “under it” will be shown, that is, the color of the pixel of the lower layer. In order to display a layered image on a standard computer monitor, Paint.NET uses an alpha channel technique.

However, transparent pixels cannot be displayed on a computer monitor. In order to somehow indicate the transparency of the layer, Paint.NET uses a background resembling a chessboard image:

Transparency

If you see a background like this, it means that part of your image is transparent. The chessboard image is not part of the image. You can think of it as a virtual or "null" background layer that is always located below all other layers displayed in the Layers window.

However, as already stated, the "chessboard" is not part of the image. If you save the image, when you view it or use it in another program, there will be no checkerboard there (unless the other program also uses the checkerboard to indicate transparency).

Layers and Opacity

While each pixel has information about its transparency, each layer also has an opacity value associated with it. These two parameters are similar, and in most cases can be considered the same thing. You can think of a layer's opacity as the "alpha" value for each pixel in the layer.

For example, if we take the top layer and gradually reduce the opacity from 225 to 0, we will get the following images, showing the layers as a stack of slides and as it appears on a computer screen:

The top layer is completely opaque

The top layer is translucent

The top layer is completely transparent

Blending Modes

The layer's blending mode specifies how the layer is blended with the layer underneath it. To change the blending mode, select the desired layer in the layers window, and then open its properties. You can open the properties of a layer using a special button in the layers window or in . In any case, the following window will open:

Not all layer blending mode names are “intuitive,” so experimentation is always recommended. Each blending mode described below is applied to the two layers discussed above with the opacity level set to 255.

In the examples below, the term “composition” will be used to refer to the result of mixing the two layers in question. The "final" composition is what you see on your computer screen after applying a particular blending mode.

Normal
Standard mode is used by default. Each pixel in the layer is blended into the composition based on its opacity value. If the top layer is completely opaque, it covers the bottom layer completely. As the transparency of the top layer decreases, the bottom layer begins to show through.

Multiplication
This mode multiplies the visible colors of the bottom layer by the colors of the top layer. As a result, the image becomes darker. When white is multiplied with another color, it does not change. A similar effect is obtained by placing two slides (one on top of the other) and directing the images onto one screen.

Addition(Additive)
The color intensities of the pixels of both layers are added together. The composition is always brighter, with the exception of completely black pixels in the images.

Darkening the base (Color Burn)
Creates the effect of incineration of the lower layer under the influence of the upper one. That is, the dark areas of the top layer are used to darken the bottom. Color multiplication and saturation increase are used. The result looks very contrasty.

Lightening the base (Color Dodge)
The opposite of the previous mode - the bottom image “burns out” under the influence of the top color. When using this mode, the light areas of the top layer enhance the brightness of the bottom layer. Dark areas have no effect. That is, the greatest changes occur towards white.

Reflect
This blending mode can be used to add shine to objects or highlights.

Glow
The same as the previous mode, but as if after changing the order of layers.

Overlay
Depending on the color intensity of the layer's pixels, the Screen Dodge mode (for dark colors) or Multiply mode (for light colors) is applied.

Difference
Subtracting the top layer from the bottom. If a pixel on the top layer is white, then a pixel on the bottom layer is inverted. If a pixel on the top layer is black, then the pixel on the bottom layer does not change. If a pixel on the top layer matches the bottom, then the result is a black pixel. That is, matching colors will be black. Mismatched fragments will be colored.

Negation
At first glance, this mode is similar to the previous one, but in fact it leads to the opposite effect. Instead of making the color darker, it lightens it.

Replacement with light (Lighten)
When using this mode, only the lightest colors on both layers remain, resulting in a lighter image than normal layering.

Replacement with dark (Darken)
In this mode, pixels in a layer are included in the resulting image only if they are darker than the corresponding pixels in another layer.

Screen Lightening
The opposite of Multiply mode in that it multiplies the color of the bottom layer with the top layer. As a result, the picture will become brighter, as if we were projecting it using two overhead projectors.

Exception (Xor)
This mode is primarily used for image analysis rather than image processing or composition.

It is often necessary to make the background of a drawing or photograph transparent.
Let's find out how to make a transparent background using the free graphics editor paint.net.

Click the “Download paint.net” button.

A page will open where we see that the editor has a Russian language, below is information about the system requirements.

Click on the button that says “Download current version...”

In the new window that opens, we see the current latest version of paint.net, click on the link and download the archive.

Making a transparent background in paint.net

To remove the background, you need to select it. In our example, the background is white, but it doesn’t matter what it is for highlighting:

  1. We take a tool - a magic wand;
  2. Selection mode – replacement or merging;
  3. Filling is continuous; if you select “global”, then non-adjacent white pixels will also be selected, for example, inside a shoe, but we don’t need this now;
  4. Set the sensitivity to about 40%, the higher the percentage, the more similar colors will appear in the selection;
  5. Click the “magic wand” on the white background.

If you see that the selection has affected areas of the main image, then reduce the sensitivity.

Now go to “Edit” and select the line “Clear selection”, or simply press the “Del” key - checkerboard-shaped cells will appear, this is how a transparent background is indicated.

But in our example, that’s not all, the shoe has a strap at the top, which means the area where the checkmark is should also be transparent.

Take the “magic wand” again and click on this white area.
There are no clear boundaries here, in fact this happens in most images, so the selection will have to be modified . Choose one of three tools: oval, lasso or rectangle - it depends on your image and the shape of the image. Choose a tool that you think will be easier to use.
At the top, activate “Combination” or “Subtraction” (when you hover the cursor, these tips appear).

Merging – if you need to add something to an already selected area.
Subtraction - on the contrary, you need to remove some part from the selected area.

Don't be afraid to make a mistake, you can always return to the original version.

So, we modify the selection as needed and remove the white background.

Removing the background with an eraser

There is another interesting option removing the background with the Eraser tool.

To do this, you also need to make a selection, and with an eraser you can remove not the entire background, but for example half, and you don’t have to be afraid to erase the main image - The eraser will only erase in the selected area.

In practice, you come across complex backgrounds - gradient, overflow, various patterns. In this case, the background is removed gradually; the sensitivity of the “magic wand” is set to low, approximately 20-30%.
Next, click on the background - some part will be highlighted, delete it.
Select the next part and delete it again, and so on until the entire background becomes transparent. But in this way you can skip some pixels, so it’s better to set the selection mode to “Merge” and click with a stick on all unselected areas. And of course, don’t forget about the oval, lasso, and rectangle tools. With their help, we add or subtract the necessary areas of the image.

The free Paint.NET program does not have as many features as many other graphic editors. However, you can use it to create a transparent background in a picture without much effort.

So, you need a certain object in the image to have a transparent background instead of the existing one. All methods have a similar principle: areas of the image that should be transparent are simply removed. But taking into account the characteristics of the original background, you will have to use different Paint.NET tools.

Method 1: Selection "Magic wand"

The background that you will delete must be selected so that the main content is not affected. If we are talking about an image with a white or the same type of background, devoid of various elements, then you can use the tool "Magic wand".

Method 2: Crop by selection

If we are talking about a picture with a varied background, which "Magic wand" If you can’t handle it, but the main object is more or less homogeneous, then you can select it and cut off everything else.

Adjust sensitivity if necessary. When everything you need is highlighted, just click the button "Crop to selection".

As a result, everything that was not included in the selected area will be deleted and replaced with a transparent background. All that remains is to save the image in the format "PNG".

Method 3: Select using "Lasso"

This option is convenient if you are dealing with a non-uniform background and the same main object that cannot be captured "Magic wand".


These simple methods of creating a transparent background in a picture can be used in the Paint.NET program. All you need is the ability to switch between different tools and care when selecting the edges of the desired object.

Most often, a transparent background is required to overlay one part of the image on another or on the illustration itself. Colorless backgrounds are actively used when designing websites. Many photos in online stores also require a white color behind the main image, which can only be achieved using a transparent one, since the camera is not able to create a pure white background of RGB color 255,255,255.

Using a magic wand

The easiest way to make a transparent background in Photoshop CS6 and newer versions is to use the " Magic wand" or " magic wand" The following are step-by-step instructions:

Eraser

Tool " magic eraser» removes similar colors, moreover, it automatically converts the background layer to a normal one. Below are step-by-step instructions for creating a transparent background for a picture:


  1. Then you can use a regular eraser remove leftovers background and finish editing, allowing you to make a picture on a transparent background.

Replacing the background

This function allows you to replace the background or even make it transparent. Detailed instructions for its use:

How to save a picture without a background in Photoshop

It is not possible to save an image without a background in the usual JPEG format; after saving the illustration, the background will be created automatically. To save the desired illustration with a transparent background, you need to use formatPNG. To use it you need to follow the path: filesave as– when saving, specify PNG.


Top