Contents in Detail

Introduction ...... xv 1.5 Exercises...... 24

ThisBook...... xv 2 Photograph Retouching ...... 25 TheAuthors...... xvi 2.1 Tutorial: Enhancing Badly Taken Production Notes ...... xvii Photographs ...... 25 Conventions ...... xvii Cropping, Straightening, and Acknowledgments ...... xvii Restoring Perspective . . . . . 25 Correcting Exposure ...... 26 Part I Learning GIMP Correcting the Color Balance . . . . . 28 1 Getting Started ...... 3 Removing an Object ...... 29 1.1 GIMP Basics ...... 3 Improving Sharpness ...... 30 The Screen Layout ...... 3 Removing Red Eye ...... 30 Dockable Dialogs ...... 4 2.2 Global Transformations ...... 32 TheToolbox...... 6 Resizing an Image ...... 32 The Single-Window Interface . . . . . 6 Shearing an Image ...... 33 1.2 Image Handling Basics ...... 8 Changing Brightness, Contrast, and Opening an Image ...... 8 Levels...... 34 Maximizing an Image ...... 9 Adjusting Colors ...... 36 Scanning...... 10 2.3 Local Transformations ...... 38 Image Window Menus ...... 11 Making a Selection ...... 38 Zooming...... 13 Modifying Sharpness ...... 41 Saving an Image ...... 13 Modifying Brightness ...... 42 1.3 Working with Images ...... 15 Using the Clone Tool ...... 45 Resizing an Image ...... 15 Perspective Cloning ...... 46 Cropping an Image ...... 15 More Correction Methods for Red Eye 47 Adding a Frame with Filters ...... 17 Changing the Sky of a Landscape . . 49 UsingLayers...... 18 2.4 Retouching a Scanned Photograph . 50 Drawing in GIMP ...... 19 Correcting Colors ...... 50 Printing with GIMP ...... 20 Correcting Scratches and Spots . . . 53 1.4 Using a Tablet ...... 21 Restoring Very Old Photographs . . . 54 Installing a Tablet ...... 22 2.5 Advanced Techniques ...... 55 The Tablet Mouse and Stylus . . . . . 22 Making a Photograph Look Older . . 55 Working with a Tablet in GIMP . . . 23 Improving a Portrait ...... 57 The Book of GIMP ©2013, Olivier Lecarme and Karine Delvare

gimp_FINAL_FINAL_pourPDF.indd 7 10/16/2012 11:45:48 AM viii Contents in Detail Contents in Detail 0 ix

Using Multiple Captures of the Using the Embossing Filters ...... 102 The Move Path Tool ...... 156 Part II Reference Same Scene ...... 58 More Ways to Create Textures . . . . 105 Binocular Animation ...... 156 9 The GIMP Interface ...... 195 2.6 Exercises...... 60 4.3 Logos ...... 108 Improving the Binocular Animation . 158 9.1 The Main Windows ...... 195 3 Drawing and Illustration ...... 61 TheTextTool...... 108 6.5 Exercises...... 160 Adding Relief ...... 108 Multi-Window Mode ...... 195 3.1 Tutorial: Colorizing a Drawing . . . . 61 Proper Shade vs. Cast Shadow . . . 109 7 Image Preprocessing ...... 161 Single-Window Mode ...... 197 The Black and White Drawing . . . . 61 Applying a Texture ...... 111 7.1 Tutorial: Extracting Information Docking Windows and Dockable Using Layers to Keep Outlines Visible 61 4.4 Exercises...... 113 fromaPicture...... 161 Dialogs...... 198 Defining Objects and Base Colors . . 63 Dynamics Extension ...... 161 The Image Window ...... 202 Coloring the Mushrooms ...... 64 5 Composite Photography ...... 115 Histogram Modification ...... 163 9.2 Fundamental GIMP Commands . . . 203 Shading...... 65 5.1 Tutorial: Building a Composite Noise Reduction ...... 164 Closing Windows and Quitting GIMP 203 Finishing Touches ...... 67 Portrait ...... 115 Edge Detection ...... 164 Working with Multiple Images . . . . 204 3.2 Painting and Drawing ...... 68 Taking Features from Different 7.2 The Principles of Preprocessing . . . . 165 Common Tab Menu Options . . . . . 206 Brushes...... 68 Portraits...... 116 9.3 Working with the GIMP Interface . . 207 Subjective Aspects of Preprocessing 165 The Pencil Tool ...... 69 Smoothing Transitions ...... 118 Menus...... 207 Histograms and Decomposition into The Paintbrush Tool ...... 71 5.2 Selections, Overlaying, and Keyboard Shortcuts ...... 207 Channels...... 166 The Airbrush Tool ...... 72 Blending Modes ...... 119 Keyboard Tips ...... 209 Extracting Information through TheInkTool...... 73 Masks and Selections ...... 119 Clicking and Dragging ...... 209 Dynamics Extension ...... 168 3.3 Filling an Area ...... 73 Overlaying Images ...... 121 9.4 Creating, Loading, Saving, and 7.3 Filtering...... 171 The Bucket Fill Tool ...... 73 Using Blending Modes ...... 123 Exporting Files ...... 210 Gradients...... 74 5.3 Building a Panorama ...... 127 The Principles of Filtering ...... 171 Creating a New Image ...... 210 Patterns...... 75 Taking the Pictures ...... 127 Characteristic Matrices ...... 172 Loading a Web Page as an Image . 211 3.4 Dodging, Burning, and Smudging . 75 Superimposing the Pictures ...... 128 Comparing the Built-in Filters . . . . . 173 Loading an Image from a File . . . . 212 The Dodge/Burn Tool ...... 75 Touching Up the Panorama ...... 129 7.4 Edge Detection ...... 175 Saving an Image ...... 214 The Smudge Tool ...... 76 The Pandora Plug-in ...... 131 The Principles of Edge Detection . . . 175 Exporting an Image ...... 215 3.5 The Digital Painting Process ...... 78 5.4 Image Overlaying ...... 131 Edge Detection Methods ...... 176 9.5 Undoing...... 217 Composition ...... 78 Digital Collage ...... 131 7.5 Exercises...... 179 9.6 The GIMP Help System ...... 219 Sky and Clouds ...... 79 Self-Compositing ...... 134 8 Designing a Website ...... 181 Mountains...... 80 A Composite Photography Project . . 136 10 Display ...... 221 Hills...... 81 5.5 Exercises...... 138 8.1 Tutorial: Laying Out a Website . . . . 181 10.1 Rulers and Units ...... 221 Grassland ...... 81 6 Animation ...... 139 Planning ...... 181 10.2 Guides...... 223 Trees...... 82 Layout...... 182 10.3 Grids...... 225 6.1 Tutorial: Animated Text ...... 139 River...... 84 AddingColor...... 182 10.4 Zoom...... 226 Method One: Frame by Frame . . . . 139 3.6 Drawing Shapes ...... 85 Choosing a Color Palette ...... 183 10.5 Using Multiple Views ...... 229 Method Two: Filtering All Layers . . . 140 Drawing a Straight Line ...... 85 8.2 Fixed- and Variable-Width Designs 185 11 Layers ...... 231 Drawing Ellipses and Rectangles . . . 86 Method Three: Moving Along a Path 142 6.2 Building an Animated GIF by Hand 144 8.3 Web Design Tools ...... 186 11.1 The Layers Dialog ...... 231 Drawing a Complex Shape ...... 87 ImageMap...... 186 3.7 Exercises...... 88 Drawing a Rainbow Daisy ...... 145 Components of the Layers Dialog . . 231 Zooming Toward the Viewer . . . . . 146 Semi-Flatten ...... 189 A Layer Entry in the Layers Dialog . 233 4 Logos and Textures ...... 89 Adding Rain to a Landscape . . . . . 148 Slice...... 189 Keyboard Shortcuts in the Layers 4.1 Tutorial: Making a Luggage Tag . . . 89 Adding Snow to a Landscape . . . . 150 8.4 Optimizing Images for the Web . . . 190 Dialog...... 234 4.2 Textures...... 92 6.3 Using Animation Tools ...... 151 JPEG...... 191 Uses of the Layers Dialog ...... 234 Tiling...... 93 Interactive Deformation ...... 151 GIF...... 191 11.2 The Layers Menu ...... 234 Creating Textures ...... 95 Animating a Still Image ...... 151 PNG...... 191 11.3 Layer Groups ...... 236 Using the Blend Tool ...... 96 Morphing...... 153 Transparency ...... 191 11.4 The Image: Layer Menu ...... 238 Using the Noise Filters ...... 101 6.4 UsingGAP...... 155 8.5 Exercises...... 192 The Stack Menu ...... 239 The Book of GIMP ©2013, Olivier Lecarme and Karine Delvare

gimp_FINAL_FINAL_pourPDF.indd 8 10/16/2012 11:45:49 AM viii Contents in Detail Contents in Detail 0 ix

Using Multiple Captures of the Using the Embossing Filters ...... 102 The Move Path Tool ...... 156 Part II Reference Same Scene ...... 58 More Ways to Create Textures . . . . 105 Binocular Animation ...... 156 9 The GIMP Interface ...... 195 2.6 Exercises...... 60 4.3 Logos ...... 108 Improving the Binocular Animation . 158 9.1 The Main Windows ...... 195 3 Drawing and Illustration ...... 61 TheTextTool...... 108 6.5 Exercises...... 160 Adding Relief ...... 108 Multi-Window Mode ...... 195 3.1 Tutorial: Colorizing a Drawing . . . . 61 Proper Shade vs. Cast Shadow . . . 109 7 Image Preprocessing ...... 161 Single-Window Mode ...... 197 The Black and White Drawing . . . . 61 Applying a Texture ...... 111 7.1 Tutorial: Extracting Information Docking Windows and Dockable Using Layers to Keep Outlines Visible 61 4.4 Exercises...... 113 fromaPicture...... 161 Dialogs...... 198 Defining Objects and Base Colors . . 63 Dynamics Extension ...... 161 The Image Window ...... 202 Coloring the Mushrooms ...... 64 5 Composite Photography ...... 115 Histogram Modification ...... 163 9.2 Fundamental GIMP Commands . . . 203 Shading...... 65 5.1 Tutorial: Building a Composite Noise Reduction ...... 164 Closing Windows and Quitting GIMP 203 Finishing Touches ...... 67 Portrait ...... 115 Edge Detection ...... 164 Working with Multiple Images . . . . 204 3.2 Painting and Drawing ...... 68 Taking Features from Different 7.2 The Principles of Preprocessing . . . . 165 Common Tab Menu Options . . . . . 206 Brushes...... 68 Portraits...... 116 9.3 Working with the GIMP Interface . . 207 Subjective Aspects of Preprocessing 165 The Pencil Tool ...... 69 Smoothing Transitions ...... 118 Menus...... 207 Histograms and Decomposition into The Paintbrush Tool ...... 71 5.2 Selections, Overlaying, and Keyboard Shortcuts ...... 207 Channels...... 166 The Airbrush Tool ...... 72 Blending Modes ...... 119 Keyboard Tips ...... 209 Extracting Information through TheInkTool...... 73 Masks and Selections ...... 119 Clicking and Dragging ...... 209 Dynamics Extension ...... 168 3.3 Filling an Area ...... 73 Overlaying Images ...... 121 9.4 Creating, Loading, Saving, and 7.3 Filtering...... 171 The Bucket Fill Tool ...... 73 Using Blending Modes ...... 123 Exporting Files ...... 210 Gradients...... 74 5.3 Building a Panorama ...... 127 The Principles of Filtering ...... 171 Creating a New Image ...... 210 Patterns...... 75 Taking the Pictures ...... 127 Characteristic Matrices ...... 172 Loading a Web Page as an Image . 211 3.4 Dodging, Burning, and Smudging . 75 Superimposing the Pictures ...... 128 Comparing the Built-in Filters . . . . . 173 Loading an Image from a File . . . . 212 The Dodge/Burn Tool ...... 75 Touching Up the Panorama ...... 129 7.4 Edge Detection ...... 175 Saving an Image ...... 214 The Smudge Tool ...... 76 The Pandora Plug-in ...... 131 The Principles of Edge Detection . . . 175 Exporting an Image ...... 215 3.5 The Digital Painting Process ...... 78 5.4 Image Overlaying ...... 131 Edge Detection Methods ...... 176 9.5 Undoing...... 217 Composition ...... 78 Digital Collage ...... 131 7.5 Exercises...... 179 9.6 The GIMP Help System ...... 219 Sky and Clouds ...... 79 Self-Compositing ...... 134 8 Designing a Website ...... 181 Mountains...... 80 A Composite Photography Project . . 136 10 Display ...... 221 Hills...... 81 5.5 Exercises...... 138 8.1 Tutorial: Laying Out a Website . . . . 181 10.1 Rulers and Units ...... 221 Grassland ...... 81 6 Animation ...... 139 Planning ...... 181 10.2 Guides...... 223 Trees...... 82 Layout...... 182 10.3 Grids...... 225 6.1 Tutorial: Animated Text ...... 139 River...... 84 AddingColor...... 182 10.4 Zoom...... 226 Method One: Frame by Frame . . . . 139 3.6 Drawing Shapes ...... 85 Choosing a Color Palette ...... 183 10.5 Using Multiple Views ...... 229 Method Two: Filtering All Layers . . . 140 Drawing a Straight Line ...... 85 8.2 Fixed- and Variable-Width Designs 185 11 Layers ...... 231 Drawing Ellipses and Rectangles . . . 86 Method Three: Moving Along a Path 142 6.2 Building an Animated GIF by Hand 144 8.3 Web Design Tools ...... 186 11.1 The Layers Dialog ...... 231 Drawing a Complex Shape ...... 87 ImageMap...... 186 3.7 Exercises...... 88 Drawing a Rainbow Daisy ...... 145 Components of the Layers Dialog . . 231 Zooming Toward the Viewer . . . . . 146 Semi-Flatten ...... 189 A Layer Entry in the Layers Dialog . 233 4 Logos and Textures ...... 89 Adding Rain to a Landscape . . . . . 148 Slice...... 189 Keyboard Shortcuts in the Layers 4.1 Tutorial: Making a Luggage Tag . . . 89 Adding Snow to a Landscape . . . . 150 8.4 Optimizing Images for the Web . . . 190 Dialog...... 234 4.2 Textures...... 92 6.3 Using Animation Tools ...... 151 JPEG...... 191 Uses of the Layers Dialog ...... 234 Tiling...... 93 Interactive Deformation ...... 151 GIF...... 191 11.2 The Layers Menu ...... 234 Creating Textures ...... 95 Animating a Still Image ...... 151 PNG...... 191 11.3 Layer Groups ...... 236 Using the Blend Tool ...... 96 Morphing...... 153 Transparency ...... 191 11.4 The Image: Layer Menu ...... 238 Using the Noise Filters ...... 101 6.4 UsingGAP...... 155 8.5 Exercises...... 192 The Stack Menu ...... 239 The Book of GIMP ©2013, Olivier Lecarme and Karine Delvare

gimp_FINAL_FINAL_pourPDF.indd 9 10/16/2012 11:45:49 AM x Contents in Detail Contents in Detail 0 xi

The Mask, Transparency, and The Ellipse Select Tool ...... 292 The Eraser Tool ...... 345 17 Filters ...... 391 Transform Menus ...... 239 The Free Select Tool ...... 293 The Airbrush Tool ...... 346 17.1 Common Properties ...... 391 The Final Five Entries ...... 240 The Fuzzy Select Tool ...... 294 TheInkTool...... 347 17.2 The Blur Filters ...... 393 12 Color ...... 241 The Select by Color Tool ...... 296 15.6 The Cloning Tools ...... 348 Blur...... 393 The Scissors Select Tool ...... 296 The Clone Tool ...... 348 Gaussian Blur ...... 393 12.1 Concepts...... 241 The Foreground Select Tool ...... 298 TheHealTool...... 350 ColorModels...... 241 MotionBlur...... 394 13.3 The Paths Tool ...... 300 The Perspective Clone Tool ...... 350 Stored Representations ...... 242 Pixelize...... 395 Building a Path ...... 300 15.7 The Modifying Tools ...... 351 IndexedMode...... 243 Selective Gaussian Blur ...... 396 Modifying a Path ...... 301 The Convolve Tool ...... 351 12.2 Blending Modes ...... 244 Tileable Blur ...... 396 UsingaPath...... 303 The Smudge Tool ...... 352 Modes That Leave Pixels Intact . . . . 245 17.3 The Enhance Filters ...... 397 The Paths Dialog ...... 305 The Dodge/Burn Tool ...... 352 Lightening Modes ...... 246 Antialias ...... 397 13.4 Using Selections ...... 306 15.8 The Text Tool ...... 353 Darkening Modes ...... 247 Deinterlace...... 397 The Select Menu ...... 307 The Text Tool Options ...... 353 Luminosity Modes ...... 248 Despeckle...... 398 TheEditMenu...... 310 Choosing a Font ...... 355 Destripe...... 400 Color Distortion Modes ...... 249 Modifying the Selection Border . . . . 312 HSVModes...... 251 Using the Text Tool ...... 356 NLFilter...... 400 12.3 Color Management ...... 252 14 Masks ...... 313 Editing Your Text ...... 357 Red Eye Removal ...... 401 Color-Managed Workflow ...... 252 14.1 Selection Masks ...... 313 15.9 The Color Picker Tool and the Sharpen...... 402 Using Color Management ...... 254 The Channels Dialog ...... 313 MeasureTool...... 358 UnsharpMask...... 402 12.4 The Major Color Tools ...... 254 Creating a Selection Mask ...... 316 The Color Picker Tool ...... 359 17.4 The Distorts Filters ...... 404 The Color Chooser ...... 254 The Quick Mask Tool ...... 317 The Measure Tool ...... 360 ApplyLens...... 404 Levels ...... 258 14.2 Layer Masks ...... 318 15.10 Combining Tool Presets, Brushes, CurveBend...... 404 Curves...... 261 Building a Layer Mask ...... 318 and Paint Dynamics ...... 361 Emboss...... 405 12.5 Additional Color Tools ...... 263 Manipulating a Layer Mask ...... 319 Getting to Know the Dialogs Involved 361 Engrave...... 405 Color Balance ...... 263 Using a Layer Mask ...... 321 Predefined Paint Dynamics ...... 361 IWarp...... 406 Hue-Saturation ...... 264 14.3 Using Masks and Channels ...... 323 Predefined Brushes ...... 363 Lens Distortion ...... 406 Colorize...... 265 Building a Natural Mask ...... 323 Predefined Tool Presets ...... 364 Mosaic ...... 408 Newsprint ...... 408 Brightness-Contrast ...... 265 Transparency and the Alpha Channel 324 16 Transformation Tools ...... 369 Threshold...... 266 Converting Masks, Selections, and Pagecurl...... 409 Posterize...... 266 Channels...... 327 16.1 Global Transformations ...... 369 Polar Coordinates ...... 410 Transforming an Image ...... 369 Ripple...... 411 Desaturate...... 266 15 Drawing Tools ...... 329 Inversion...... 267 Resizing an Image ...... 371 Shift ...... 411 12.6 The Color Submenus ...... 268 15.1 Digital Art ...... 329 Cropping an Image ...... 374 Value Propagate ...... 412 The Auto Submenu ...... 268 15.2 An Overview of the Drawing Tools . 329 Transforming a Layer ...... 375 Waves...... 414 The Components Submenu ...... 270 15.3 Shared Features ...... 330 16.2 Local Transformations ...... 377 Whirl and Pinch ...... 414 The Map Submenu ...... 274 Drawing Tool Options ...... 330 Shared Properties ...... 377 Wind...... 414 The Info Submenu ...... 278 Paint Dynamics ...... 333 TheMoveTool...... 381 17.5 The Light and Shadow Filters . . . . . 415 The Remaining Color Tools ...... 280 Using Dockable Dialogs with TheAlignTool...... 381 Gradient Flare ...... 415 Drawing Tools ...... 335 TheCropTool...... 384 LensFlare...... 418 13 Selections ...... 285 Six Useful Dockable Dialogs . . . . . 337 The Rotate Tool ...... 385 Lighting Effects ...... 418 13.1 What Is a Selection? ...... 285 15.4 The Fill Tools ...... 339 TheScaleTool...... 386 Sparkle...... 420 A Selection as an Outline ...... 285 The Bucket Fill Tool ...... 339 The Shear Tool ...... 387 Supernova...... 421 A Selection as a Grayscale Image . 286 TheBlendTool...... 340 The Perspective Tool ...... 387 DropShadow...... 421 13.2 The Seven Selection Tools ...... 287 15.5 The Painting Tools ...... 343 TheFlipTool...... 388 Perspective...... 422 Common Options ...... 287 The Pencil Tool ...... 343 The Cage Transform Tool ...... 388 17.6 The Noise Filters ...... 423 The Rectangle Select Tool ...... 289 The Paintbrush Tool ...... 344 HSVNoise...... 423 The Book of GIMP ©2013, Olivier Lecarme and Karine Delvare

gimp_FINAL_FINAL_pourPDF.indd 10 10/16/2012 11:45:49 AM x Contents in Detail Contents in Detail 0 xi

The Mask, Transparency, and The Ellipse Select Tool ...... 292 The Eraser Tool ...... 345 17 Filters ...... 391 Transform Menus ...... 239 The Free Select Tool ...... 293 The Airbrush Tool ...... 346 17.1 Common Properties ...... 391 The Final Five Entries ...... 240 The Fuzzy Select Tool ...... 294 TheInkTool...... 347 17.2 The Blur Filters ...... 393 12 Color ...... 241 The Select by Color Tool ...... 296 15.6 The Cloning Tools ...... 348 Blur...... 393 The Scissors Select Tool ...... 296 The Clone Tool ...... 348 Gaussian Blur ...... 393 12.1 Concepts...... 241 The Foreground Select Tool ...... 298 TheHealTool...... 350 ColorModels...... 241 MotionBlur...... 394 13.3 The Paths Tool ...... 300 The Perspective Clone Tool ...... 350 Stored Representations ...... 242 Pixelize...... 395 Building a Path ...... 300 15.7 The Modifying Tools ...... 351 IndexedMode...... 243 Selective Gaussian Blur ...... 396 Modifying a Path ...... 301 The Convolve Tool ...... 351 12.2 Blending Modes ...... 244 Tileable Blur ...... 396 UsingaPath...... 303 The Smudge Tool ...... 352 Modes That Leave Pixels Intact . . . . 245 17.3 The Enhance Filters ...... 397 The Paths Dialog ...... 305 The Dodge/Burn Tool ...... 352 Lightening Modes ...... 246 Antialias ...... 397 13.4 Using Selections ...... 306 15.8 The Text Tool ...... 353 Darkening Modes ...... 247 Deinterlace...... 397 The Select Menu ...... 307 The Text Tool Options ...... 353 Luminosity Modes ...... 248 Despeckle...... 398 TheEditMenu...... 310 Choosing a Font ...... 355 Destripe...... 400 Color Distortion Modes ...... 249 Modifying the Selection Border . . . . 312 HSVModes...... 251 Using the Text Tool ...... 356 NLFilter...... 400 12.3 Color Management ...... 252 14 Masks ...... 313 Editing Your Text ...... 357 Red Eye Removal ...... 401 Color-Managed Workflow ...... 252 14.1 Selection Masks ...... 313 15.9 The Color Picker Tool and the Sharpen...... 402 Using Color Management ...... 254 The Channels Dialog ...... 313 MeasureTool...... 358 UnsharpMask...... 402 12.4 The Major Color Tools ...... 254 Creating a Selection Mask ...... 316 The Color Picker Tool ...... 359 17.4 The Distorts Filters ...... 404 The Color Chooser ...... 254 The Quick Mask Tool ...... 317 The Measure Tool ...... 360 ApplyLens...... 404 Levels ...... 258 14.2 Layer Masks ...... 318 15.10 Combining Tool Presets, Brushes, CurveBend...... 404 Curves...... 261 Building a Layer Mask ...... 318 and Paint Dynamics ...... 361 Emboss...... 405 12.5 Additional Color Tools ...... 263 Manipulating a Layer Mask ...... 319 Getting to Know the Dialogs Involved 361 Engrave...... 405 Color Balance ...... 263 Using a Layer Mask ...... 321 Predefined Paint Dynamics ...... 361 IWarp...... 406 Hue-Saturation ...... 264 14.3 Using Masks and Channels ...... 323 Predefined Brushes ...... 363 Lens Distortion ...... 406 Colorize...... 265 Building a Natural Mask ...... 323 Predefined Tool Presets ...... 364 Mosaic ...... 408 Newsprint ...... 408 Brightness-Contrast ...... 265 Transparency and the Alpha Channel 324 16 Transformation Tools ...... 369 Threshold...... 266 Converting Masks, Selections, and Pagecurl...... 409 Posterize...... 266 Channels...... 327 16.1 Global Transformations ...... 369 Polar Coordinates ...... 410 Transforming an Image ...... 369 Ripple...... 411 Desaturate...... 266 15 Drawing Tools ...... 329 Inversion...... 267 Resizing an Image ...... 371 Shift ...... 411 12.6 The Color Submenus ...... 268 15.1 Digital Art ...... 329 Cropping an Image ...... 374 Value Propagate ...... 412 The Auto Submenu ...... 268 15.2 An Overview of the Drawing Tools . 329 Transforming a Layer ...... 375 Waves...... 414 The Components Submenu ...... 270 15.3 Shared Features ...... 330 16.2 Local Transformations ...... 377 Whirl and Pinch ...... 414 The Map Submenu ...... 274 Drawing Tool Options ...... 330 Shared Properties ...... 377 Wind...... 414 The Info Submenu ...... 278 Paint Dynamics ...... 333 TheMoveTool...... 381 17.5 The Light and Shadow Filters . . . . . 415 The Remaining Color Tools ...... 280 Using Dockable Dialogs with TheAlignTool...... 381 Gradient Flare ...... 415 Drawing Tools ...... 335 TheCropTool...... 384 LensFlare...... 418 13 Selections ...... 285 Six Useful Dockable Dialogs . . . . . 337 The Rotate Tool ...... 385 Lighting Effects ...... 418 13.1 What Is a Selection? ...... 285 15.4 The Fill Tools ...... 339 TheScaleTool...... 386 Sparkle...... 420 A Selection as an Outline ...... 285 The Bucket Fill Tool ...... 339 The Shear Tool ...... 387 Supernova...... 421 A Selection as a Grayscale Image . 286 TheBlendTool...... 340 The Perspective Tool ...... 387 DropShadow...... 421 13.2 The Seven Selection Tools ...... 287 15.5 The Painting Tools ...... 343 TheFlipTool...... 388 Perspective...... 422 Common Options ...... 287 The Pencil Tool ...... 343 The Cage Transform Tool ...... 388 17.6 The Noise Filters ...... 423 The Rectangle Select Tool ...... 289 The Paintbrush Tool ...... 344 HSVNoise...... 423 The Book of GIMP ©2013, Olivier Lecarme and Karine Delvare

gimp_FINAL_FINAL_pourPDF.indd 11 10/16/2012 11:45:49 AM xii Contents in Detail Contents in Detail 0 xiii

Hurl...... 423 Tile...... 451 Manipulating Frames ...... 493 PostScript and PDF ...... 544 Pick...... 424 Warp...... 452 Converting Between File Formats . . 494 TIFF...... 545 RGBNoise...... 424 17.13 The Render Filters ...... 453 Modifying Frames ...... 495 Formats ...... 545 Slur...... 425 Clouds Filters ...... 453 Altering Layers ...... 497 SVG...... 546 Spread ...... 425 Nature Filters ...... 454 Converting Between Multilayer and Additional Formats Supported by 17.7 The Edge-Detect Filters ...... 426 Pattern Filters ...... 458 Multiframe ...... 497 GIMP ...... 546 Difference of Gaussians ...... 426 Encoding...... 499 Circuit...... 466 21 Scripts and Plug-ins ...... 547 Edge...... 426 Fractal Explorer ...... 466 Playback and Navigator ...... 500 Laplace...... 427 Gfig...... 468 Split Video into Frames ...... 502 21.1 About Scripts and Plug-ins ...... 547 Neon...... 428 Lava...... 470 Bluebox...... 503 Scheme, Python, and C ...... 547 Sobel...... 428 LineNova...... 471 Onionskin ...... 504 Installed Plug-ins ...... 548 17.8 The Generic Filters ...... 429 Sphere Designer ...... 471 Storyboard...... 505 Finding New Plug-ins ...... 549 Convolution Matrix ...... 429 Spyrogimp...... 472 19 Obtaining and Printing Images 509 21.2 Noteworthy Plug-ins ...... 549 Dilate ...... 430 Photo Effects ...... 550 18 Animation Tools ...... 475 19.1 Capturing Screenshots ...... 509 Erode ...... 430 G’MIC...... 550 19.2 Scanning...... 510 17.9 The Combine Filters ...... 430 18.1 Principles of Animation ...... 475 Liquid Rescale ...... 550 Scanners and Drivers ...... 510 DepthMerge...... 430 Frame Frequency and Vision . . . . . 475 Elsamuko Scripts ...... 553 XSane and GIMP ...... 512 17.10 The Artistic Filters ...... 431 Frames and Layers ...... 476 21.3 Writing Plug-ins ...... 554 Selecting an Area to Scan ...... 512 ApplyCanvas...... 432 Output Formats ...... 476 Scheme...... 554 Setting the Scanning Parameters . . . 514 Cartoon...... 432 Optimizing Animations ...... 477 Python...... 556 ScanModes...... 515 Clothify...... 433 18.2 Tools for Building Multilayer C ...... 558 Scanning Resolutions ...... 517 Cubism...... 433 Animations...... 478 Color Handling ...... 518 22 Customizing GIMP ...... 561 GIMPressionist ...... 434 Animating by Hand ...... 478 19.3 Digital Cameras ...... 520 GlassTile...... 438 The IWarp Tool ...... 478 22.1 The Preferences Dialog ...... 561 Importing Photographs into GIMP . . 520 Oilify...... 438 The Morph Tool ...... 478 Environment ...... 561 Choosing a Format ...... 521 Photocopy...... 439 Filtering All Layers ...... 481 User Interface ...... 562 Handling Raw Photographs ...... 523 Softglow...... 440 18.3 The Animation Menu ...... 483 Theme...... 563 19.4 Printing...... 525 VanGogh...... 440 Blend...... 483 HelpSystem...... 563 The Principles of Printing ...... 525 Weave...... 441 Burn-In...... 483 ToolOptions...... 563 Printing with the GTK Interface . . . . 527 17.11 The Decor Filters ...... 442 Rippling...... 484 Toolbox...... 564 Printing with Gutenprint ...... 529 AddBevel ...... 442 Selection to Animimage ...... 485 Default New Image ...... 564 19.5 Scanning and Printing with Windows 531 AddBorder ...... 442 Spinning Globe ...... 485 Default Image Grid ...... 565 CoffeeStain...... 443 Waves...... 486 20 Image Formats ...... 533 Image Windows ...... 565 FuzzyBorder ...... 443 Optimizing and Playing an 20.1 An Overview of File Formats . . . . . 533 Display...... 567 OldPhoto...... 443 Animation ...... 486 Raster and Vector Formats ...... 533 Color Management ...... 567 Round Corners ...... 444 18.4 The Move Path Tool ...... 487 Lossless and Lossy Compression . . . 534 Input Devices ...... 569 17.12 The Map Filters ...... 444 Choosing the Source Layers ...... 488 Layout Engines and Browsers . . . . . 536 Window Management ...... 569 BumpMap...... 444 Choosing the Destination Frames . . 489 20.2 JPEG, GIF, and PNG ...... 537 Folders...... 571 Displace...... 445 Applying Transformations ...... 489 JPEG...... 537 22.2 Additional Preferences in the Edit Fractal Trace ...... 447 Control Points ...... 490 GIF...... 538 Menu...... 571 Illusion...... 447 KeyFrames...... 492 PNG...... 541 Keyboard Shortcuts ...... 571 Make Seamless ...... 447 The Preview Window ...... 492 20.3 GIMP’s Native Formats ...... 542 Modules...... 572 MapObject...... 448 Testing the Move Path Tool ...... 492 XCF...... 542 Units...... 573 PaperTile...... 449 Advanced Settings ...... 493 Other Native Formats ...... 543 22.3 Customizing Image Views ...... 573 SmallTiles...... 451 18.5 The Video Menu ...... 493 20.4 Other Useful Formats ...... 543 Display Filters ...... 573 The Book of GIMP ©2013, Olivier Lecarme and Karine Delvare

gimp_FINAL_FINAL_pourPDF.indd 12 10/16/2012 11:45:49 AM xii Contents in Detail Contents in Detail 0 xiii

Hurl...... 423 Tile...... 451 Manipulating Frames ...... 493 PostScript and PDF ...... 544 Pick...... 424 Warp...... 452 Converting Between File Formats . . 494 TIFF...... 545 RGBNoise...... 424 17.13 The Render Filters ...... 453 Modifying Frames ...... 495 Netpbm Formats ...... 545 Slur...... 425 Clouds Filters ...... 453 Altering Layers ...... 497 SVG...... 546 Spread ...... 425 Nature Filters ...... 454 Converting Between Multilayer and Additional Formats Supported by 17.7 The Edge-Detect Filters ...... 426 Pattern Filters ...... 458 Multiframe ...... 497 GIMP ...... 546 Difference of Gaussians ...... 426 Encoding...... 499 Circuit...... 466 21 Scripts and Plug-ins ...... 547 Edge...... 426 Fractal Explorer ...... 466 Playback and Navigator ...... 500 Laplace...... 427 Gfig...... 468 Split Video into Frames ...... 502 21.1 About Scripts and Plug-ins ...... 547 Neon...... 428 Lava...... 470 Bluebox...... 503 Scheme, Python, and C ...... 547 Sobel...... 428 LineNova...... 471 Onionskin ...... 504 Installed Plug-ins ...... 548 17.8 The Generic Filters ...... 429 Sphere Designer ...... 471 Storyboard...... 505 Finding New Plug-ins ...... 549 Convolution Matrix ...... 429 Spyrogimp...... 472 19 Obtaining and Printing Images 509 21.2 Noteworthy Plug-ins ...... 549 Dilate ...... 430 Photo Effects ...... 550 18 Animation Tools ...... 475 19.1 Capturing Screenshots ...... 509 Erode ...... 430 G’MIC...... 550 19.2 Scanning...... 510 17.9 The Combine Filters ...... 430 18.1 Principles of Animation ...... 475 Liquid Rescale ...... 550 Scanners and Drivers ...... 510 DepthMerge...... 430 Frame Frequency and Vision . . . . . 475 Elsamuko Scripts ...... 553 XSane and GIMP ...... 512 17.10 The Artistic Filters ...... 431 Frames and Layers ...... 476 21.3 Writing Plug-ins ...... 554 Selecting an Area to Scan ...... 512 ApplyCanvas...... 432 Output Formats ...... 476 Scheme...... 554 Setting the Scanning Parameters . . . 514 Cartoon...... 432 Optimizing Animations ...... 477 Python...... 556 ScanModes...... 515 Clothify...... 433 18.2 Tools for Building Multilayer C ...... 558 Scanning Resolutions ...... 517 Cubism...... 433 Animations...... 478 Color Handling ...... 518 22 Customizing GIMP ...... 561 GIMPressionist ...... 434 Animating by Hand ...... 478 19.3 Digital Cameras ...... 520 GlassTile...... 438 The IWarp Tool ...... 478 22.1 The Preferences Dialog ...... 561 Importing Photographs into GIMP . . 520 Oilify...... 438 The Morph Tool ...... 478 Environment ...... 561 Choosing a Format ...... 521 Photocopy...... 439 Filtering All Layers ...... 481 User Interface ...... 562 Handling Raw Photographs ...... 523 Softglow...... 440 18.3 The Animation Menu ...... 483 Theme...... 563 19.4 Printing...... 525 VanGogh...... 440 Blend...... 483 HelpSystem...... 563 The Principles of Printing ...... 525 Weave...... 441 Burn-In...... 483 ToolOptions...... 563 Printing with the GTK Interface . . . . 527 17.11 The Decor Filters ...... 442 Rippling...... 484 Toolbox...... 564 Printing with Gutenprint ...... 529 AddBevel ...... 442 Selection to Animimage ...... 485 Default New Image ...... 564 19.5 Scanning and Printing with Windows 531 AddBorder ...... 442 Spinning Globe ...... 485 Default Image Grid ...... 565 CoffeeStain...... 443 Waves...... 486 20 Image Formats ...... 533 Image Windows ...... 565 FuzzyBorder ...... 443 Optimizing and Playing an 20.1 An Overview of File Formats . . . . . 533 Display...... 567 OldPhoto...... 443 Animation ...... 486 Raster and Vector Formats ...... 533 Color Management ...... 567 Round Corners ...... 444 18.4 The Move Path Tool ...... 487 Lossless and Lossy Compression . . . 534 Input Devices ...... 569 17.12 The Map Filters ...... 444 Choosing the Source Layers ...... 488 Layout Engines and Browsers . . . . . 536 Window Management ...... 569 BumpMap...... 444 Choosing the Destination Frames . . 489 20.2 JPEG, GIF, and PNG ...... 537 Folders...... 571 Displace...... 445 Applying Transformations ...... 489 JPEG...... 537 22.2 Additional Preferences in the Edit Fractal Trace ...... 447 Control Points ...... 490 GIF...... 538 Menu...... 571 Illusion...... 447 KeyFrames...... 492 PNG...... 541 Keyboard Shortcuts ...... 571 Make Seamless ...... 447 The Preview Window ...... 492 20.3 GIMP’s Native Formats ...... 542 Modules...... 572 MapObject...... 448 Testing the Move Path Tool ...... 492 XCF...... 542 Units...... 573 PaperTile...... 449 Advanced Settings ...... 493 Other Native Formats ...... 543 22.3 Customizing Image Views ...... 573 SmallTiles...... 451 18.5 The Video Menu ...... 493 20.4 Other Useful Formats ...... 543 Display Filters ...... 573 The Book of GIMP ©2013, Olivier Lecarme and Karine Delvare

gimp_FINAL_FINAL_pourPDF.indd 13 10/16/2012 11:45:50 AM xiv Contents in Detail

Hiding or Revealing Parts of the C.3 Tutorials...... 614 Image Window ...... 575 C.4 Communities and Blogs ...... 615 Padding Colors and Snapping . . . . 576 C.5 Brushes and Plug-ins ...... 615 22.4 Building New Brushes ...... 576 BrushSets...... 616 Defining an Ordinary Brush ...... 577 Plug-inSets...... 616 Defining a Color Brush ...... 577 C.6 Mailing Lists and IRC Channels . . . . 616 Defining an Animated Brush . . . . . 577 C.7 Other Graphics Applications . . . . . 616 Defining a Parametric Brush . . . . . 579 C.8 Related Graphics Software Projects . 617 Introduction 22.5 Building New Patterns ...... 580 C.9 Other Graphics Sites ...... 617 22.6 Building New Gradients ...... 581 D Frequently Asked Questions ... 619 The Gradient Editor ...... 581 D.1 What Does the Future Hold? . . . . . 619 The Gradient Editor Menu ...... 582 D.2 How...?...... 620 GIMP stands for GNU Image Manipulation Pro- Microsoft Windows and Mac OS X. Installing Building a Gradient ...... 584 D.3 Why...?...... 622 gram, and it is one of the most successful appli- GIMP is fairly easy, and if you haven’t already 22.7 Building New Palettes ...... 585 cations in the world of free software. The name done so, take a minute and install GIMP now The Palette Editor ...... 586 E Installing GIMP ...... 625 GNU is a recursive acronym: GNU’s Not Unix, (see Appendix E for installation instructions). Importing Palettes ...... 586 E.1 GNU/Linux and Unix ...... 625 coined in 1983 by the celebrated Richard M. Compared to the dominant commercial Exporting and Duplicating Palettes . 587 Debian ...... 625 Stallman as a name for his pet project—a free image-manipulation application, which is de- Palette to Gradient and Sort Palette . 587 Ubuntu...... 626 software, Unix-like operating system. veloped by an army of well-paid programmers, Indexed Palettes ...... 588 Mint...... 626 Free software is a term used to describe soft- GIMP is currently developed by a very small Fedora...... 626 Part III Appendices ware that can be used, studied, modified, and team of unpaid, but enthusiastic, volunteer pro- OpenSUSE...... 626 redistributed by anyone with only one, very rea- grammers. Keep this in mind if (read: when) A Vision and Image Mandriva...... 626 sonable restriction: that other users enjoy the you run into glitches in the program or when Representation ...... 591 Other Unix-like Operating Systems . 626 same freedom to use the software and to exam- a feature you’d like to have isn’t available. Re- E.2 Windows...... 627 A.1 The Physiology of Vision ...... 591 ine and modify the software’s code. Free soft- member the GIMP credo: “If you want it so E.3 MacOSX ...... 627 How the Human Eye Works ...... 591 ware is generally available without charge, but badly, make it, and share it with the rest of us!” Color Perception ...... 592 F Batch Processing ...... 629 sometimes there is a fee. Welcome to the world of free software! Color Blindness ...... 593 F.1 GIMP Batch Mode ...... 629 The word free must be understood as in “free Optical Illusions ...... 595 F.2 David’s Batch Processor ...... 630 speech” rather than “free beer.” The term A.2 Image Representation ...... 597 F.3 ImageMagick ...... 632 software libre is gaining some popularity, as it This Book Discretization ...... 597 Calling ImageMagick ...... 632 negates this ambiguity. The French word libre Digitalization ...... 598 When the idea for this book began to take form Building Thumbnails ...... 633 means free in the sense of liberty, whereas the in the beginning of 2006, we imagined finishing Compression ...... 600 Labels and Transformations ...... 634 word gratuit means free of charge. A.3 Color Representation ...... 602 it in 2010 and covering GIMP 3.0. The first GIMP is freely distributed to (and by) any- How Colors Are Produced ...... 602 Index ...... 635 goal was nearly met for the French edition—that body, and anybody can look at its contents and The Additive Model ...... 604 was under our control—but GIMP 3.0 is still far its source code and can add features or fix prob- The Subtractive Model ...... 606 off because volunteer developers can work only lems. The only restriction is that, if you make TheHSVModel...... 607 when they have time to do so. Still, GIMP 2.8 is any change to GIMP and want to redistribute A.4 Exercises...... 608 a great leap forward compared to the previous it to other people, you must do it in a way that version, GIMP 2.6. Some of the most note- B Tips and Hints for Selected grants the recipients exactly the same freedom worthy new features include a single-window Exercises ...... 609 that you enjoyed. interface; completely revised and more power- GIMP began in 1995 as the school project ful brush dynamics; clarification of saving versus C Resources ...... 613 of two university students; now GIMP is a full- exporting images; improved handling of dock- C.1 Official GIMP Pages ...... 613 fledged application, available on all distribu- able dialogs; support for layer groups; the ability C.2 Related Official Sites ...... 614 tions of GNU/Linux and on recent versions of to lock pixels, channels, and paths; an improved The Book of GIMP ©2013, Olivier Lecarme and Karine Delvare

gimp_FINAL_FINAL_pourPDF.indd 14 10/16/2012 11:45:50 AM