David A. Harding
Thursday, 10 Jan 2008
The GIMP's layers let you edit the third dimension, depth, in a two-dimensional picture. In Grade School, you probably managed layers by cutting pictures out of magazines and pasting them on top of each other. GIMP (Gimp) works the same way, but you get a few extra features:
Compared to Grade School layering, Gimp has one disadvantage:
If I gave you the poster from the iRobot movie [1], a picture of Richard Stallman from Wikipedia [2], scissors, and some rubber cement, you could almost duplicate the following image [3] in three minutes. (Click on any following image to see it in full-size without the number shadowing.)
What you can't easily duplicate with scissors and glue is renaming Will
Smith to Will ``RMS'' Smith. Like pre-washing vegetables in a Rachael Ray
cooking show, I'm going to pretend I already filled in the Will in Will
Smith's name [1], blurred the edges of the letters [2], added the
text Will RMS
[3], and removed the background from
Stallman's portrait [4]. I'll explain how to do those things
in a later blog; they have nothing to do with layers.
Now that the vegetables are washed, we can recreate the poster above in Gimp. It'll take less than three minutes, and you won't need any glue.
In the window containing the modified iRobot poster, I select Open As Layer from the File menu [1]; an Open File dialogue box appears [2], and I re-open Stallman's portrait, which becomes the top layer. When both pictures are displayed at the same scale, Richard Stallman's head is overlarge [3].
Not in 25 years has anyone at the Free Software Foundation done anything about Richard Stallman's big head—but we can: on the Gimp toolbar, click the scale button [1], click on Stallman's head, move the dialogue box that appears [2] out of the way, and click (and hold) onto one of the four dialogue boxes that appears around Stallman's head [3].
If you drag the mouse inwards towards Stallman's nose [1], his head will shrink [2]. Keep dragging inward until Stallman's head is slightly larger than Will Smith's head. Keeping Stallman's head slightly oversized makes it easy to completely cover Smith's head with Stallman's head, and I think it helps preserve a sense of universal order: MacArthur Foundation Genius Grant Fellows should have bigger heads than The Fresh Prince of Bel-Air.
Select the move tool [1], click Stallman's head, and drag it over Smith's head [2]. Note that Smith's head is on an angle and Stallman's isn't. We should fix that.
To match the angle of the two heads, we need to see both of them. select Layers in the Dialogue menu [1] to make the layers dialogue [2] appear. The layers dialogue has two items: Background is the iRobot Poster and the highlighted layer is Stallman's head. Drag the opacity slider [3] left until you can see both Stallman's and Smith's eyes [4].
Use the move tool again to align Stallman's and Smith's right eyes [1]. To match their left eyes, click on the rotate tool [2], click on Stallman's head, click on one of the four handles that appears [3], and rotate it clockwise until Stallman's left eye is aligned with Smith's left eye [4].
In the layers dialogue, drag the opacity slider right to 100% [1]. In the image window, save the finished image as iRMS.png. Now write a review of the iRobot movie, add iRMS.png, and post it to your blog [2].
[Ad: This blog is part 2 of 11 blogs about Gimp for my presentation at the Cherry Hill (NJ, USA) LUG on Friday, 1 February 2007. If you're in the area, consider attending for a live demonstration of this material plus my usual wacky hijinks]