Use GIMP to clean the background of any image with these tricks

Surely on more than one occasion we have required the possibility of eliminating the background of any photograph we have taken in order to work only with the part that interests us. This is something that can be done with different applications. For this reason, today we are going to see how we can carry out this work with a tool as popular as GIMP.

GIMP, the professional open source editor

GIMP is a tool for professional image editing, with which to be able to carry out all kinds of work such as cropping, converting and retouching the image, masking, etc. It also has a good number of tools with which to select and remove the background of any image. In this way, we can select only one object or person from an image and delete everything else. This is ideal when we want to make any type of montage, collage, etc.

This software has been developed freely and for free to be an alternative to private and commercial software, so that it can be used by all types of users. Despite not reaching the high performance quotas of other programs such as Photoshop, it is a great option for a wide range of users to develop all kinds of editing tasks.

To start using it, just download it from this link. Being a multiplatform program, we can use it in operating systems such as Windows, macOS and Linux. In addition, it has a portable version, in case we do not want to install it on our computer.

Ways to remove the background from a photo with GIMP

At the time of being able to eliminate the background of a photo with GIMP we will have three tools such as Fuzzy selection (magic wand), the tool of Free selection (lasso) and tool Quick mask. Next, we explain how each of them works. The Fuzzy Selection tool is the easiest to use of the three options, the Free Selection and Quick Mask being reserved for use by more advanced users and with more complex images.

Fuzzy Selection Tool or Magic Wand

It is a tool very similar to the magic wand that we can find in Photoshop, so it will be of great help to eliminate the background that contains areas with sharp edges. Although it is difficult to select exactly what we want with absolute precision, it does work well with backgrounds that incorporate a solid color.

Once we have opened the image in GIMP we will have to right click on the layer in the menu that we find on the right side. This will open a context menu where we must select the option «Add alpha channel». Later we must select the «Fuzzy Selection» tool (magic wand icon) that we visualize in the upper left part. This will open a menu within the tool itself where we must make sure that the options for “Smoothing”, “Blurring the edges” and “Drawing mask” are checked.

Next, we must click while holding down the mouse cursor on the image and drag it along the background that we want to eliminate. We can increase the selection range by moving the cursor upwards, while if we move it downwards we reduce the range. In this way we will make the unwanted area appear purple.

GIMP select background with magic wand

Once we have selected the correct area to delete, we release the mouse button and press the key DELETE of our keyboard. With this we will be able to eliminate the selected background with a single stroke of the pen. To ensure that the image is perfect and without a background, we can repeat the operation for different areas.

GIMP remove background with magic wand

Free Selection Tool (lasso)

Another tool that we have available in GIMP to eliminate the background of an image is the Free Selection or Lasso tool, which will allow us to create a selection by drawing it freehand with the pointer, while holding down the left mouse button.

To do this we must open the image and right click on the layer in the menu that we find on the right side. In the contextual menu where we must select the option «Add alpha channel». Now we select the “free selection” or lasso tool and we will take care of bordering the object or person that we want to separate from the background. It is a complex method, but with which we can achieve a higher level of precision when removing the background.

GIMP select lasso tool

When we have it selected, we must click on the “Select” tab at the top of the menu, and then on “Invert”.

GIMP Select and Invert

Finally, we only have to press the key DELETE. This removes all the background from the image or photo completely. In case we have not achieved it the first time, we can repeat the operation until we achieve it, as it is a method that requires a little practice and a good pulse to master it.

GIMP remove background loop

Quick mask tool

Finally, we are now going to see the quick mask tool, with which we will be able to paint a selection instead of drawing its outline to eliminate the background of any image.

We start by opening the image and right clicking on the layer in the menu that we find on the right side. In the contextual menu that appears, we select the Add alpha channel option. Later we go to the “Select” tab and click on the “Activate quick mask” tool. When doing this, our image will be superimposed in red.

GIMP Enable Quick Mask

Next, we select the “Eraser” tool and erase the red color from our main image, leaving the background.

GIMP Select draft

Now, we must press the keyboard shortcut of the Quick Mask tool which is “Shift + Q”, which will be in charge of selecting our image. Once the image is selected, click on the “Select” tab and click on “Invert” to select the background.

GIMP remove background with quick mask

Finally, we click on the button DELETE to remove the background. We must be very skilled with the eraser tool to keep all the image that we want to keep and leave out all the background.

Related Articles