How to Do a Black and White Partial Color Effect With the GIMP Photo Editor

Guggenheim with accented cab in front

Wynand van Poortvliet / Getty Images

One of the more dynamic photo effects involves converting a photo to black and white except for one object that stands out in color. You can achieve this in many ways. Here's a non-destructive method using a layer mask in the free photo editor GIMP (GNU Image Manipulation Program)

01
of 08

Save and Open the Practice Image

Child in overalls and sunhat, sitting on a bench, holding an apple next to a bushel of apples

D. Spluga

Start by opening your own image to practice on as you follow along. If you're using Gimp on a Mac, substitute Command (Apple) for Ctrl, and Option for Alt whenever keyboard shortcuts are mentioned. 

02
of 08

Duplicate the Background Layer

Duplicate the background layer screenshot
  1. First make a copy of the photo and convert it to black and white.
  2. Make the layers palette visible by pressing Ctrl + L.
  3. Right-click on the background layer and choose duplicate from the menu. You'll have a new layer called background copy.
  4. Double-click on the layer name and type "grayscale," then press Enter to rename the layer.
03
of 08

Convert the Duplicate Layer to Grayscale

Desaturate dialog box screenshot
  1. Go to the Colors menu and choose desaturate with the grayscale layer selected.
  2. The remove colors dialog offers three ways of converting to grayscale. You can experiment to find out which you prefer, but we're using the luminosity option here.
  3. Press the desaturate button after making your selection. 
04
of 08

Add the Layer Mask

Add Layer Mask dialog box screenshot

Now we'll give this photo a punch of color by restoring color to the apples using a layer mask. This allows us to easily correct mistakes.

Right click on the grayscale layer in the layers palette and choose Add Layer Mask from the menu. Set the options as shown here in the dialog that appears, with White (full opacity) selected. Then click Add to apply the mask. The layers palette will now show a white box next to the image thumbnail – this represents the mask.

Because we used a duplicate layer, we still have the color image in the background layer. Now we're going to paint on a layer mask to reveal the color in the background layer below it.

You may already be familiar with layer masks. Here's a recap for those who aren't:

A layer mask lets you erase parts of a layer by painting on the mask. White reveals the layer, black blocks it completely, and shades of gray partially reveal it. Because our mask is currently all white, the entire grayscale layer is being revealed. We're going to block the grayscale layer and reveal the color of the apples from the background layer by painting on the layer mask with black. 

05
of 08

Reveal the Apples in Color

Paint on the layer mask to reveal the color of the apples screenshot
  1. Zoom in on the apples in the photo so they fill your workspace.
  2. Activate the Paintbrush tool, select an appropriately-sized round brush, and set opacity to 100 percent. Set the foreground color to black by pressing D.
  3. Now click on the layer mask thumbnail in the layers palette and begin painting over the apples in the photo. This is a good time to use a graphics tablet if you have one.

As you paint, use the bracket keys to increase or decrease the size of your brush:

  • [ makes the brush smaller
  • ] makes the brush larger
  • Shift + [ makes the brush softer
  • Shift + ] makes the brush harder

If you're more comfortable making selections than painting in the color, you can use a selection to isolate the object you want to color. Click the eye in the layers palette to turn off the grayscale layer, make your selection, then turn the grayscale layer back on. Click the layer mask thumbnail, and then go to Edit > Fill with FG Color, with black as the foreground color.

Don't panic if you go outside the lines. We'll show you how to clean that up next.

06
of 08

Cleaning up the Edges by Painting in the Layer Mask

Cleaning up the edges of the mask screenshot

You probably painted color onto some areas that you didn't intend to. No worries. Just switch the foreground color to white by pressing X and erase away the color back to gray using a small brush. Zoom in close and clean up any edges using the shortcuts you've learned.

Set your zoom level back to 100 percent (actual pixels) when you're done. You can do this by pressing 1 on the keyboard. If the colored edges look too harsh, you can soften them slightly by going to Filters > Blur > Gaussian Blur and setting a blur radius of 1 to 2 pixels. The blur is applied to the mask, not the photo, resulting in a softer edge.

07
of 08

Add Noise for a Finishing Touch

RGB Noise dialog box screenshot

Traditional black and white photography would ordinarily have some film grain. This was a digital photo so you won't get that grainy quality, but we can add it with the noise filter.

  1. First, we have to flatten the image that will remove the layer mask, so make sure you're completely happy with the color effect before we start. If you want to keep an editable version of the file before flattening, go to File > Save a Copy and choose GIMP XCF image for the file type. This will create a copy in GIMP's native format but it will keep your working file open.
  2. Now right-click in the layers palette and choose Flatten Image.
  3. With the background copy selected, go to Filters > Noise > RGB Noise.
  4. Uncheck the boxes for both Correlated Noise and Independent RGB.
  5. Set the Red, Green and Blue amount to 0.05.

Check the results in the preview window and adjust the image to your liking. You can compare the difference with and without the noise effect by using the undo and redo commands.

08
of 08

Crop and Save the Photo

A boy holding a red apple, with partial color red accent

D. Spluga

As a last step, use the Rectangle Select Tool and make a crop selection for a better composition. Go to Image > Crop to Selection, then save your finished image.