Simple Photo Editing Using GIMP: Replacing Backgrounds

Yellow flower
Yellow flower on black

What if you could make your ordinary digital photos extraordinary? Whether you want to use your photos on a website or just as your desktop wallpaper at home, you can easily learn how to make your photos pop. It takes just a few simple techniques to remove a photo’s subject from a distracting background and really let it shine. With this tutorial, I will show you how easy it is to remove a photo’s background using the free photo editor GIMP. (Available for Windows, Mac, and Linux.)

To get the best results from these techniques, choose your photo carefully. Pick a photo with a compelling subject that would really shine on a plain background. Especially for your first efforts, choose photos with contrasting backgrounds and smooth outlines. Difficult photos would be closeups of pets where individual hairs would have to be painstakingly detailed, or photos of foliage where hundreds of individual leaf points will have to be cut out.

1. After choosing your photo and opening it in GIMP, take a look at the workspace. The menus, currently on the right, can be dragged anywhere on your screen, and the photo window can be resized as needed. (Click on the photo to enlarge it.) GIMP workspace

2. Begin by adjusting the image view so you can see the entire photo on your screen. GIMP workspace

3. Select the Magic Wand tool (circled) from the menus.

Magic Wand selection

4. Click, or press Shift and click, to select large areas of similar colors with the Magic Wand. Click along the outside edge of your color as well. If you select something accidentally, use Control Z to undo your last selection. When finished, your photo should look something like this. Photo selected with the Magic Wand

5. Next, select the Quick Mask in the lower left corner.

Toggle the Quick Mask

6. The Quick Mask is a red layer that allows you to select more precisely. It can be toggled off and on again by click the button shown above. Quick Mask

7. Select your tools for the next task. First, click on the Brush tool at #1. Next, switch the foreground color to white by clicking the arrow in the circle at #2. Then, click the circle next to the word Brush to choose your Brush size, at #3.

Select your tools

8. Use a large brush size to “erase” the red mask from the area you wish to select.

Use the Brush tool to select

9. Switch to a smaller brush size to do the details on the outside edge. You may want to switch to a larger view, such as 400%. Use the Brush at 400%

10. Using the Brush to select the object is the most time-consuming part. With some practice, you will become faster and more accurate. If you erase too much, use Control Z to undo, or switch the Foreground back to black (as in #2 of Step 7). This will let you paint the red mask back onto anything you’ve accidentally uncovered. When you think you have everything selected, switch back to 100% to check your work. It should look something like this. Finished using the Brush tool

11. Now toggle the Quick Mask off again (as in Step 5) and check your work. If you see any shimmering spots in the middle of the area you wanted to select, just toggle the Quick Mask again, make sure your Foreground is white (see #2 of Step 7), and brush over the area. Toggle the Quick Mask off again. Areas that weren't selected properly

12. When you’re happy with your selection, go to the Select menu at the top of the photo window and choose To Path. This is a little insurance in case you make a mistake later.

Select to Path

13. Now go to the Select menu again and choose Invert. It may not look different, but this command selects all the background behind your object.Invert Selection

14. Choose your tools for the next steps. Click on the Fill tool at #1. Double-clicking on the Foreground color at #2 will let you choose another color. Make sure FG color fill is selected at #3.

Choose Fill tools

15. With the Fill tool selected, click in the background of your photo to paint with the Foreground color you picked. Fill the background

16. If everything looks right, go to the Select menu and choose None.

Select None

17. If you see some mistakes after you remove the selection, never fear. Remember the insurance we took out in Step 12? If you want your selection back because you noticed you have something extra attached to the part of the photo you want, go to the Select menu and choose From Path. Your object is now selected again, so you can toggle the Quick Mask and erase anything that shouldn’t be there. If you need to undo further, go to the Edit menu and choose Undo History. This will let you choose how far to undo.

Select From Path

18. I haven’t mentioned saving yet. If you want to be able to use the Path you saved later, be sure to save using the .xcf format. If you also want to put your photo online or print it out, then save it as a .jpg too. If you want to adjust your photo now, you have options in the various menus in the photo window. You can go to the Image menu and choose Scale Image to resize your photo. You can go to the Tools menu, then Transform Tools to Crop your photo. More tools

I hope this tutorial has been useful and enjoyable. GIMP has many more features to explore, and there are many ways to expand on even these simple techniques. Please leave a comment or contact me if you have any questions. I am still learning myself, but I’ll do my best to help you. If you want to learn more about GIMP techniques, here are some tutorial links to get you started:

Stop by tomorrow to get the flower photo in a larger size for use as a desktop wallpaper.

Thanks for reading - CSS

If you enjoyed this post, you may want to subscribe to my RSS feed.

Comments

Comment from Dee
Time: October 22, 2007, 3:56 am

Very detailed and helpful post. I need to add more photos to my blog so this is very useful to know. Thanks.

Comment from CSS
Time: October 22, 2007, 4:33 am

Thanks, Dee!

Please let me know if you have any questions, and I’ll do my best to answer them.

Pingback from My writing picks | don’t be shy
Time: October 22, 2007, 4:45 am

[…] Simple photo editing using gimp. 2. How to add a plug-in function calls without breaking your theme. 3. How to solve a […]

Pingback from Top Tutorials From the Tutorials Group Writing Project
Time: October 25, 2007, 3:01 am

[…] CSS: Simple Photo Editing Using GIMP […]

Pingback from Who Needs Tutorials? Do I Hear Everybody?
Time: October 27, 2007, 5:22 am

[…] CSS: Simple Photo Editing Using GIMP […]

Pingback from Who can’t use a couple of tutorials?
Time: October 27, 2007, 9:34 am

[…] Getting Through Nano Kryistina: Environmental Tutorial David Rogers: How to Solve A Problem CSS: Simple Photo Editing Using GIMP Dee: Making Friends with A Neighbor or Co-Worker Gal: The Best Excerises You Might Not Be Doing […]

Pingback from Are you competitive?
Time: October 27, 2007, 4:20 pm

[…] 1) Terry Didcott - How to Install a Self Hosted Wordpress Blog 2) Adam - Adding a Blog to Flickr 3) CSS - Simple Photo Editing Using GIMP […]

Comment from Monika @ The Writers Manifesto
Time: October 29, 2007, 2:17 am

Thanks for this great entry. I also apologize for the late comment. Have stumbled and promoted you post and you can check the winners on the 30th.

It was very much appreciated that you participated as I really love this one. Gimp has always been a bit of a mystery to me so I will learn heaps from this alone. :-)
Monika

Comment from CSS
Time: October 29, 2007, 6:15 am

Thanks Monika! I’m glad you liked my post. I hope it’s useful for you.

Comment from Adam Donkus
Time: October 29, 2007, 12:18 pm

I use Photoshop for my photo editing? But I will have to give Gimp a try to see how it compares.

Pingback from Group Writing Project - The Winners Announced! | TheWritersManifestoBlog
Time: October 30, 2007, 3:09 am

[…] place: CSS  from Here to Create got 4 votes with a total of 80 points. Well […]

Pingback from Blogging Tutorial Group Writing Project - My Online World
Time: October 30, 2007, 8:08 am

[…] house in an environmental manner. David Rogers has a great post How to Solve A Problem. CSS shows Simple Photo Editing Using GIMP, which is a good post about using Gimp, a free online program, to edit photos. I will have to give […]

Comment from dateson
Time: December 17, 2007, 3:43 pm

Thanks.

I learn something new today!

Comment from gimp tutorial
Time: January 15, 2008, 6:36 am

great tutorial.. may i link this tutorial from http://gimp-tutorials.net?

Comment from camy_madalina2000
Time: March 4, 2008, 10:25 am

superrrrrrr

Pingback from Are you competitive? | How to Have Great Self Confidence
Time: March 16, 2008, 2:45 am

[…] 1) Terry Didcott - How to Install a Self Hosted Wordpress Blog 2) Adam - Adding a Blog to Flickr 3) CSS - Simple Photo Editing Using GIMP […]

Comment from DazzleCat Website Design
Time: May 12, 2008, 6:34 am

good tutorial gimp can be such a useful too

Write a comment