How To Change Image Background in GIMP

Mehvish

We know a picture is worth a thousand words. Let’s say you have taken a photo with some not-so-cool background. Now having a dull background would undermine the image’s essence, so what do you do?

Change Image Background In Gimp

The best way to enhance an image is to change its background. Sadly, the conventional image editors do not provide this feature and you will have to use professional editors like Photoshop or GIMP. We will be using GIMP here. 

Without further ado, let’s get started on how to replace background in GIMP.

Replace Background Color

If the background is simple and consists of only a single color, you can use the following method to replace it. In this method, first, we need to remove the background color and then we will add an image.

Step 1: Launch GIMP and open the image for which you want to change the background by going to File > Open.

Step 2: From the Tools panel on the left, choose the Fuzzy select or Select by color tool and click once on the background color to select it.

Once you do that, you will see that the background color is selected.

Change Background Image Gimp 1
Change Background Image Gimp 2

Step 3: With the background selected, go to Edit > Clear. Alternatively, press the Delete key on your keyboard to delete the background.

Change Background Image Gimp 3
Change Background Image Gimp 4

Step 4: Now that you have an image with a transparent background, you can add anything here. If you want to add a solid color, select Bucket Fill tool and choose the color from color palette. Then click on the background of the image to fill it with the new color.

Change Background Image Gimp 5
Change Background Image Gimp 6

Step 5: If, however, you want to replace it with a different image, follow this step, otherwise go to step 6. Open the image using File in the top bar and choose Open As Layers from the menu.

Change Background Image Gimp 7
Change Background Image Gimp 8

You will see that the new background will hide your original image, as it is the top layer. Now from the Layers panel on the right, hold the mouse on the background image and drag it below the main image.

Change Background Image Gimp 9

That’s it. You will have your image with a new background.

Step 6: Lastly, you need to save the image. To do that, go to File > Export As and save the image.

Change Background Image Gimp 10

Replace Multicolored Background

Usually, the images don’t have a single-colored background. In such situations, we need to use the following methods.

Method 1: Using Eraser

Step 1: Launch GIMP and open the image whose background you want to change from File > Open.

Step 2: Next, using File > Open as Layers, open the image that you want to keep as the background.

Change Background Image Gimp 11


Step 3: You will see that the new image will cover the original image. Now from the Layer panel on the right, hold the mouse pointer and drag the new background image below the original image.

Change Background Image Gimp 12
Change Background Image Gimp 13

Step 4: Again, in the Layer panel, right-click on the original image and select Add Alpha Channel. In case the button is greyed out, it means it is already added.

Change Background Image Gimp 14

Step 5: After adding the alpha channel, again right-click on the same layer and now choose Alpha to Selection from the menu.

Change Background Image Gimp 15

Step 6: Click on the Eraser tool from the tools panel in the left and start removing the background to reveal the new one. You can change the size of the eraser in the toolbar.

Change Background Image Gimp 16

Step 7: Once you are done removing the background, use File > Export As to save it to your PC.

Method 2: Using Quick Mask

Another method to remove background is with the help of Quick Mask. Here are the steps:

Step 1: With the help of File > Open, load the image whose background you want to change. Then with the help of File > Open as Layers, load the new background.

Step 2: Since the new background image will cover the original image, move it below the original image from the Layers panel in the right sidebar.

Change Background Image Gimp 17
Change Background Image Gimp 18

Step 3: Right-click on each layer in the layer panel and select Add Alpha Channel from the menu.

Change Background Image Gimp 19A

Step 4: With the original image layer selected, click on the Foreground select tool from the toolbar and draw an outline for the portion that you want to extract.

Change Background Image Gimp 20A

Step 5: Now if you feel that the selection isn’t perfect, use the Quick Mask tool to refine it. To do so, first, click on the Quick Mask tool present at the bottom-left corner of the image. Your image will turn red.

Then use Mouse and CTRL or SHIFT key to add or subtract the selection.

Change Background Image Gimp 23

Step 6: Once you are satisfied with the selection, draw on the image portion to select the foreground. Then hit the Enter button.

Change Background Image Gimp 24

Step 7: Go to Select and choose Invert from the menu. Finally, hit the Delete key on your keyboard. The new background will replace your image.

Change Background Image Gimp 25
Change Background Image Gimp 26

Step 8: Then to save the image, go to File > Export As.

Method 3: Make Background Transparent

In this method, you need to extract the portion of the image whose background you want to change and make its background transparent. We have covered the procedure in detail here.

Once you have made the background transparent and saved the image in .png format, open the new background image in GIMP and then with the help of File > Open As Layers, add the old image with transparent background. Your picture will now have a different background.

Read Next
5 Best Alternatives to Windows 10 Photos App
Also See
#Check other cool GIMP tutorials#Photo Editing Apps

Join the newsletter

Mehvish

Written By

Mehvish

Mehvish is a technology enthusiast from Kashmir. A computer engineer by profession, she's always been keen to help when someone finds technology challenging. She keeps to herself and is an introvert. This doesn't stop her from being curious about the world around, especially when it comes to technology.