Remove background from an image with GIMP free tool.
I will show you 2 methods to remove a background from image, one a simple method for a simple picture, and one more an advanced method.
Method 1 – simple
This method will only work if the background has a solid color what is different than the image color, or vise versa the image has a solid color that is different from the background.
Fire up GIMP and select your image i will select my simple smiley face image.
As you can see the background has a solid red color and the image has nothing red. That makes it very easy.
Grab the “Select by color” tool marked in red at the image.
Now hover over to the solid color area, which by me is the red area and click to select that color. By me, all the red will be selected.
This step is only if your image is a solid color and the background is not, the opposite we have here. Then instead of selecting the background, select your image, then hover over to the top menu options click on “Select” and choose “Invert Selection” that will invert your selection and select the full background.
Go to the layer area on the top right of the screen, right click on your layer and select “Add alpha channel”
This adds a transparent background under your image, You will not see any change when you do this but it is very important if you want to have a transparent background.
now you can just click on your keyboard the DELETE key and the whole red background will disappear from your image, and you will have an image like this.
Export the image, you need to export it as a PNG file so you will not loos the transparency, go to file > export as, and select the name you want, and all options you can leave by default.
Here you have done it, You have successfully removed the background from an image with GIMP! That’s the easy and simple way but will not work for a lot of images. So let’s go to the advanced method.
Method 2 – Advanced
For this method, i will choose a more a complicated picture. but it will work even on more complicated pictures than that. So let’s get started.
I will select my picture of a nice close Fish.
As you can this one is definitely not that simple as the last one. Let’s see if we can remove the background from this image with GIMP. If you look closely you will notice the bottom of the fish will be hard to get all the details, but it is not impossible.
First thing first we need to make a copy of the layer. Just go over to the layer area, click on your layer then a right click and select “Duplicate layer”.
head over to the top menu options click on “Colors” then select “Threshold”
Ones you click on that you will immediately see your image get transformed don’t get scared that is what we wanted. You can notice how the foreground(fish) get separated from the background, now we just need to tweak around a little with the tool until we get the best results.
This is how this image looks like just by selecting the tool.
You can see the background is completely blacked out which is a good thing, but it is missing a lot of detail from the fish, so we can’t leave it like this.
Play around with the arrow on the dialog. The results that you are looking for is the most you can separate the foreground from the background but you can’t loos any detail from the foreground. So here is what I think worked the best for my image.
You can see, now the background is not completely black, but now we have all the details of the fish which is very important. You do the same for your picture, eliminate the most of the background you can but without loosing any of your foregrounds.
Now fill in all the inside of the fish with withe and the outside with black to complete the job that the tool didn’t finish, so will have a completely separate image from the background.
Here are my results after completely whiting out the inside of the fish, and blacking out the background. Now comes the easy and fun part.
Go ahead and select the “magic select tool”
And click anywhere on the black area, all the black area should be selected.
While the background is selected, go back to the layer window and click on the original layer where you have the full colored image, and click the eye near the black and white image so you won’t see that layer anymore. You will see the selection is still around the fish.
Step 8: the most fun part…
Just press the DELETE key on your keyboard and watch the magic happen.
Here it is, fully removed the background from the image, but retained all the details.
Yes, we did it!!!
I hope this was helpful, and you will learn how to remove the background from all your images. If you still have any questions you can leave it in the comments section and i’ll try to answer the best I can.
If you want to check out some other tutorials. Here are some links.