Here's how to merge elements from different photographs into one.
First, make sure you've downloaded and installed The Gimp.
Here are the two photographs we're going to use, taken from FirstWorldWar.com
Here's the final image:
Getting Started
-
Download trenches.xcf.zip which contains the two source photos on named layers (or copy it from /students/files/trenches.xcf into your folder)
-
Open 'trenches.xcf' in Gimp
-
This file contains two photos - a trench and a soldier throwing a grenade. The photos are on separate, named layers
-
Open the Layers palette (ctrl-L).
-
Click the eye next to each layer to show/hide the two photos
Remove the background from the soldier photo
-
Right-click the 'soldier' layer, select 'Add Layer Mask' (white, full opacity)
-
Select the paintbrush (P) tool
-
Dialogs > Brushes (ctrl-shift-B)
-
Choose a fuzzy 19-px brush.
-
Now 'paint' with black onto the soldier layer's mask. Wherever you paint with 'black', the 'soldier' layer will become transparent. If you rub out too much, paint it back in with 'white'. Use the 'x' key to switch between black & white.
-
No need to be too accurate yet, just clear away the background
Resize & position the soldier layer
-
Select the 'Move' tool (M)
-
In the Layers palette, click on the layer itself (not the mask)
-
Drag the soldier to the trench with the two helmets on posts
-
Select the 'Scale' tool (shift-T). In the options below, select 'Keep aspect' so the grenade thrower stays in proportion
-
Drag the soldier layer until it's about the right size
-
View > Show Layer Boundary to hide the yellow/black layer edges
Finishing touches
-
View > New view to create a second copy of the image. Keep this one at 100% (1) and zoom the other window (-/+) to clean up your mask
-
You may also want to adjust the contrast to make the soldier 'fit' the background better (Layer > Colors > Brightness/Contrast)
-
Finally, open Layer > Colors > Curves on the background layer and pull the top right and bottom left ends of the line inwards to where the histogram starts to fix the 'dullness' of the photo. This makes the blacks blacker and the white whiter!
Compositing tutorial on You Tube
Compositing Examples
Related pages: The Gimp
Category: ICT
Author: Mr Kershaw