Pankaj Shah web agency director in London with over 20 years of experience in web design and project management

I hope you enjoy reading our blog posts.

If you want DCP to build you an awesome website, click here.

How to Remove a White Background from an Image in GIMP

Last Updated: 20/02/2026

Removing the background from a photograph is useful when you want to isolate a person, product or object and place it onto a completely different image.

There are several ways to remove backgrounds in GIMP, and the best method often depends on the photograph you’re working with. In this tutorial, we’ll look at a technique that works particularly well when your subject is photographed against a plain or predominantly white background.

We’ll create a black-and-white version of the image, use it to produce a layer mask and then place the finished subject onto a new background.

Open Your Images in GIMP

Start by opening GIMP and making sure the main panels you’ll need are visible.

You should have access to the:

  • Toolbox
  • Tool Options
  • Layers panel

Next, open your new background image in GIMP.

You can then drag the photograph containing the person or object you want to isolate onto the canvas. This should create another layer above your background.

At this stage, you’ll have your new background on the lower layer and the photograph you want to edit above it.

Add an Alpha Channel

Before removing the white background, make sure the photograph you’re editing supports transparency.

In the Layers panel, right-click the photograph layer and select:

Add Alpha Channel

An alpha channel allows areas of the layer to become transparent. Without it, removing part of an image may simply reveal the layer’s existing background colour rather than creating transparency.

Scale the Photograph

If your photograph is considerably larger than the background image, you may find that parts of it extend beyond the canvas.

Select the Scale Tool, click on the photograph and resize it until the subject is at a more manageable size.

Don’t worry about getting the final position perfect yet. We’ll resize and reposition the subject again after removing the background.

Duplicate the Image Layer

Before creating the mask, duplicate the photograph layer.

Right-click the layer and select Duplicate Layer.

You should now have two copies of the same photograph.

We’ll use the upper copy to create the black-and-white mask while preserving the original colour photograph underneath.

This is useful because the mask we’re creating isn’t intended to become part of the finished image. It’s being used to determine which parts of the original photograph remain visible.

Desaturate the Duplicate Layer

Select the duplicated layer and convert it to greyscale.

Open the Colours menu and choose the appropriate desaturation option. In the tutorial, the Luminosity setting is used.

The photograph should now appear in shades of grey.

The next objective is to create as much contrast as possible between the subject and the white background.

Increase the Contrast Using Curves

With the greyscale layer still selected, go to:

Colours > Curves

Adjust the curve so the subject becomes considerably darker while retaining important details around difficult edges, particularly areas such as hair.

The background should remain light while the subject becomes darker.

Don’t worry if the image looks unnatural at this stage. You’re not creating the final photograph – you’re creating the basis of a mask.

The important thing is to maintain a reasonably clear distinction between the subject and the background.

Invert the Image

Once you’ve created enough contrast, go back to the Colours menu and select Invert.

The image should now be reversed so the subject is predominantly white and the background is predominantly black.

This is important because of how the layer mask will work:

White areas remain visible, while black areas become transparent.

Think of the white portion as the part of the photograph you want to keep.

Paint the Subject White

The automatic contrast adjustment probably won’t produce a perfect mask.

Some parts of the subject may still contain dark or grey patches. These need to be cleaned up before creating the final mask.

Select the Paintbrush Tool, choose white as your foreground colour and use a relatively large solid brush to paint over the main areas of the subject.

Everything you want to keep should ultimately be white.

Be careful as you approach the edges of the subject. You don’t want to paint white over areas that should eventually become transparent.

Clean Up Difficult Edges

Detailed areas such as hair usually require more attention.

Zoom into the photograph and reduce the size of your brush. Carefully work around the edges, filling in areas that belong to the subject without destroying the finer details you’ve retained from the original photograph.

You don’t need every edge to be absolutely perfect at normal editing magnification. What matters is how convincing the finished image looks when viewed at its intended size.

Take your time around hair, clothing and other detailed areas because these are usually where background removal becomes most noticeable.

Create the Layer Mask

Once you’re happy with the black-and-white version, you’re ready to turn it into a mask.

At this stage, the principle is simple:

  • White = visible
  • Black = transparent
  • Grey = partially transparent

Copy the black-and-white mask you’ve created.

Return to the original colour photograph layer, right-click it and select Add Layer Mask.

Choose a white mask with full opacity and add it to the layer.

Paste your black-and-white mask into the new layer mask and anchor the pasted selection.

You should now see the white background disappear, revealing the replacement background underneath while keeping the subject visible.

Check the Background Removal

Turn your replacement background layer back on if you previously hid it.

You should now see your subject positioned against the new background.

This is the point where any problems with the mask become much easier to spot.

Look carefully around:

  • hair;
  • shoulders;
  • clothing;
  • hands;
  • curved edges; and
  • other detailed parts of the subject.

If you notice unwanted areas from the original background, you can continue editing the layer mask.

Painting black onto the mask hides parts of the image, while painting white brings them back. This makes layer masks particularly useful because you can continue refining the result without permanently deleting the original photograph.

Resize the Subject and Layer Mask Together

Once the background has been removed, you may need to resize the subject to fit naturally within the new scene.

Make sure you’re working with both the image and its associated layer mask so they remain aligned.

Use the Scale Tool to reduce or enlarge the subject as required.

Think about the overall composition rather than simply making the person or object fit. The subject should look as though it belongs within the replacement image.

Move the Subject Into Position

Select the Move Tool and position the subject where you want it to appear.

For example, you might place a person towards one side of the photograph if you want to leave space for text, a logo or another design element.

Check the scale as well as the position. A technically correct background removal can still look unnatural if the subject is too large or too small compared with the surrounding scene.

Save Your Editable GIMP File

It’s a good idea to save your project before you get too far into the editing process – and continue saving regularly while you work.

Save the project in GIMP’s editable format so you retain the individual layers and layer mask.

This means you can return later and:

  • refine the mask;
  • reposition the subject;
  • resize the subject;
  • replace the background; or
  • make further colour adjustments.

If you only save the finished image as a JPEG, you’ll lose much of that editing flexibility.

Export the Finished Image

Once you’re happy with the composition, you can export a finished version.

Go to:

File > Export As

Choose your preferred image format and filename.

JPEG is suitable when the final image has a solid photographic background and you don’t need transparency.

If you want to export the isolated subject while retaining a transparent background, use a format that supports transparency, such as PNG.

When Does This Background Removal Technique Work Best?

This technique works particularly well when there is a strong contrast between the subject and the original background.

A person photographed against a clean white background is a good example because it’s relatively easy to separate the light background from the darker details within the subject.

More complicated photographs may require a different approach.

If the background contains lots of colours, objects, shadows or textures – or if parts of the subject are very similar in colour to the background – creating a clean mask can become considerably more difficult.

In those situations, you may need to use GIMP’s selection tools or a more detailed masking technique.

Take Your Time With the Layer Mask

Removing a white background in GIMP doesn’t have to mean painstakingly tracing around every part of a photograph by hand.

By creating a high-contrast black-and-white version of the image and turning it into a layer mask, you can isolate a subject while retaining finer details around areas such as hair.

The basic process is:

  1. Open the photograph and replacement background.
  2. Add an alpha channel.
  3. Duplicate the photograph layer.
  4. Desaturate the duplicate.
  5. Increase the contrast using Curves.
  6. Invert the image.
  7. Paint the subject white and clean up the mask.
  8. Apply the result as a layer mask.
  9. Resize and reposition the subject.
  10. Save the editable project and export the finished image.

Once you understand how black, white and grey affect a layer mask, the same technique can be adapted for many other image-editing projects.

The key is to spend a little extra time refining the mask. A clean edge around the subject will make the final composition look far more convincing when it’s placed onto a completely different background.

Author

Picture of Pankaj Shah

Pankaj Shah

Pankaj Shah is the founder of DCP Web Designers, an award-winning London-based web design and digital marketing agency. With over 20 years of experience, he specialises in WordPress web design, WooCommerce, SEO and helping businesses build effective online solutions.
Tell Us Your Thoughts

This website (dcpweb.co.uk) uses cookies to improve your browsing experience and help us understand how our site is used. By continuing to browse this website, you agree to our use of cookies.

To learn more about how we collect, use, and protect your data, please read our Privacy Policy.

DCP Web Designers is one of London’s most established web design companies.

Since 2004, we have designed and developed websites for companies across a wide range of industries, from local service businesses to ecommerce brands and professional organisations.

Our focus is on creating websites that not only look professional, but also perform well in search engines, attract the right audience and support long-term business growth.

If you are looking for experienced web designers who understand how to build websites that deliver real results, our team is here to help.

Privacy Policy

Last Updated: 01/07/2024

Different Colour Productions Ltd (“we,” “us,” or “our”) is committed to protecting your privacy. This Privacy Policy outlines our practices concerning the collection, use, and disclosure of personal information when you visit our website or engage with our services. By using our website and services, you consent to the terms outlined in this Privacy Policy.

1. Information We Collect

We collect various types of information to provide and improve our services. The types of information we may collect include:

1.1. Personal Information: This may include your name, email address, phone number, and any other information you provide when you contact us, request information, or subscribe to our newsletter.

1.2. Log Data: When you visit our website, we automatically collect information, such as your IP address, browser type, pages visited, and the time and date of your visit.

1.3. Cookies and Similar Technologies: We use cookies and other tracking technologies to improve your experience on our website. You can adjust your browser settings to reject cookies or be alerted when cookies are being used.

2. How We Use Your Information

We use the collected information for various purposes, including:

2.1. Providing Services: To provide web design and related services you have requested from us.

2.2. Communication: To respond to your inquiries, send updates, and provide customer support.

2.3. Analytics: To analyse and improve our website and services, as well as monitor usage patterns.

3. Information Sharing and Disclosure

We do not sell or rent your personal information to third parties. However, we may share your information with third parties under the following circumstances:

3.1. Service Providers: We may share your information with trusted service providers who help us deliver our services, such as hosting providers, analytics providers, and marketing services.

3.2. Legal Obligations: We may disclose your information when required by law, to comply with legal processes, or to protect our rights, privacy, safety, or property.

4. Your Choices

You have choices regarding your personal information:

4.1. Access and Update: You can access and update your personal information by contacting us.

4.2. Marketing Communications: You can opt out of receiving marketing communications from us by following the unsubscribe instructions in our emails or emailing [email protected]

5. Security

We take appropriate measures to protect your personal information from unauthorised access, disclosure, alteration, or destruction.

6. Links to Other Websites

Our website may contain links to third-party websites. We are not responsible for the privacy practices of these websites. We recommend reviewing their respective privacy policies.

7. Changes to this Privacy Policy

We may update this Privacy Policy from time to time to reflect changes in our practices. Any changes will be posted on this page, and the date at the top will indicate the latest update.

8. Contact Us

If you have any questions or concerns about this Privacy Policy or our practices, please contact us at: [email protected]

By using our website and services, you acknowledge that you have read and agree to this Privacy Policy. Different Colour Productions Ltd is committed to safeguarding your personal information and respecting your privacy rights.

ThreeBestRated Top 3 Website Designers in London 2026 award for DCP Web Designers Certificate