How to do Chroma Key in GIMP: A GIMP Tutorial on Changing a Photo Background
Chroma Key: The Way to Make a Virtual Background
Chroma key is the method by which photographers (and videographers) use a monochromatic backdrop, then replace the blue or green "screen" with a virtual background. This is the method employed during every evening weather broadcast: the newscaster is standing in front of a blank screen, but the viewers at home see a weather map.
Chroma key can also be used with photography. Subjects can be photographed in front of a monochromatic screen, and a virtual background can be placed behind the subject once the screen is removed. In the example below, a butterfly is photographed on a blue tarp, which is replaced by a Goldenrod flower.
When choosing an object for use in chroma key, it is important to verify the background "screen" color does not exist on the object. For example, choosing a blue background for a blue butterfly would be a poor choice: portions of the butterfly would be deleted along with the background.
In addition, it would be a good idea to become familiar with the basic GIMP functions before attempting this tutorial: a basic knowledge of the Layers dialog and toolbox items is necessary prior to attempting this photo editing technique.
Step 1: Open Photo, Add Alpha Channel
- Go to FILE and OPEN the image file which contains a monochromatic background.
- Go to the LAYER tab on top of the GIMP screen and select ADD ALPHA CHANNEL.
- Go to the WINDOWS tab on the top of the GIMP screen and select DOCKABLE DIALOGS. Choose LAYERS to open the Layers window.
Step 2: Select Color and Delete Color
- Go to the COLOR SELECT tool in the toolbox window. This is the icon with a hand pointing to a color panel.
- Select an area of the monochromatic background (in the case of the butterfly, this would be the blue tarp area). The general area will become shaded with blinking lines.
- Go to EDIT and select CUT. A large area of the background will disappear, leaving the gray checkered pattern in its wake.
- Continue to select the background and delete the color until the background is entirely gone.
Step 3: Create a New Layer and Paste New Background
- In the Layers window, select the small white rectangle in the lower left corner to CREATE a NEW LAYER. Select transparency as the layer type.
- Choose a photographic background: Go to FILE and OPEN the new image file.
- Go to EDIT and COPY the new background.
- Return to the original photograph and PASTE the background into the new layer (in the case of the example, this was an image of a Goldenrod flower).
- The pasted image will be "floating." While the pasted background is "floating," adjust the size of the background using the SCALE tool in the toolbox window.
- When the background is of suitable size and scale, click on the anchor icon in the Layers window to ANCHOR LAYER.
- The new background will completely cover up the original object. To place the object in front of the background, simply click on the GREEN ARROW to move the background layer down one level.
Step 4: Resize Objects and Save
- If the original object is out of scale with the background, simply select the layer and use the SCALE tool to adjust the size. In the case of the example, the butterfly was the object, and it had to be rescaled to fit on the Goldenrod flower.
- Use the MOVE tool to adjust the location of the object on the background.
- When the object and the background are appropriately sized and adjusted, go to FILE and select SAVE AS to save the file. GIMP will send a prompt to export the file: simply click OK and select 100% for the image quality. Save the file with an appropriate identifying name.
More by this Author
The State of New York has a beautiful array of mushrooms and other fungi growing among the oak, maple, and beech forests. This photo gallery of orange and yellow mushrooms was taken in Frewsburg, a town in the...
Old black and white photographs may be colorized using digital photo editing software. GIMP is a free photo editing program available for download, and can be used to add a touch of color to old photographs.
Great travel tips and travel toys for one year old children, whether traveling by car or by plane.