9

Contents in Detail - No Starch PressContents in Detail 0 ix The Move Path Tool . . . . . . . . . . . 156 Binocular Animation. . . . . . . . . . . 156 Improving the Binocular Animation

  • Upload
    others

  • View
    14

  • Download
    0

Embed Size (px)

Citation preview

Contents in DetailIntroduction . . . . . . . . . . . . . . . . . . . . . xv

This Book . . . . . . . . . . . . . . . . . . xvThe Authors . . . . . . . . . . . . . . . . xviProduction Notes . . . . . . . . . . . . . xviiConventions . . . . . . . . . . . . . . . . xviiAcknowledgments . . . . . . . . . . . . xvii

Part I Learning GIMP1 Getting Started . . . . . . . . . . . . . . 3

1.1 GIMP Basics . . . . . . . . . . . . . . . . 3The Screen Layout . . . . . . . . . . . . 3Dockable Dialogs . . . . . . . . . . . . 4The Toolbox . . . . . . . . . . . . . . . . 6The Single-Window Interface . . . . . 6

1.2 Image Handling Basics . . . . . . . . . 8Opening an Image . . . . . . . . . . . . 8Maximizing an Image . . . . . . . . . 9Scanning . . . . . . . . . . . . . . . . . . 10Image Window Menus . . . . . . . . . 11Zooming . . . . . . . . . . . . . . . . . . 13Saving an Image . . . . . . . . . . . . . 13

1.3 Working with Images . . . . . . . . . . 15Resizing an Image . . . . . . . . . . . . 15Cropping an Image . . . . . . . . . . . 15Adding a Frame with Filters . . . . . . 17Using Layers . . . . . . . . . . . . . . . . 18Drawing in GIMP . . . . . . . . . . . . . 19Printing with GIMP . . . . . . . . . . . . 20

1.4 Using a Tablet . . . . . . . . . . . . . . . 21Installing a Tablet . . . . . . . . . . . . . 22The Tablet Mouse and Stylus . . . . . 22Working with a Tablet in GIMP . . . 23

1.5 Exercises . . . . . . . . . . . . . . . . . . 24

2 Photograph Retouching . . . . . . . 25

2.1 Tutorial: Enhancing Badly TakenPhotographs . . . . . . . . . . . . . . . . 25Cropping, Straightening, and

Restoring Perspective . . . . . 25Correcting Exposure . . . . . . . . . . . 26Correcting the Color Balance . . . . . 28Removing an Object . . . . . . . . . . . 29Improving Sharpness . . . . . . . . . . 30Removing Red Eye . . . . . . . . . . . . 30

2.2 Global Transformations . . . . . . . . . 32Resizing an Image . . . . . . . . . . . . 32Shearing an Image . . . . . . . . . . . 33Changing Brightness, Contrast, and

Levels . . . . . . . . . . . . . . . 34Adjusting Colors . . . . . . . . . . . . . 36

2.3 Local Transformations . . . . . . . . . . 38Making a Selection . . . . . . . . . . . 38Modifying Sharpness . . . . . . . . . . 41Modifying Brightness . . . . . . . . . . 42Using the Clone Tool . . . . . . . . . . 45Perspective Cloning . . . . . . . . . . . 46More Correction Methods for Red Eye 47Changing the Sky of a Landscape . . 49

2.4 Retouching a Scanned Photograph . 50Correcting Colors . . . . . . . . . . . . 50Correcting Scratches and Spots . . . 53Restoring Very Old Photographs . . . 54

2.5 Advanced Techniques . . . . . . . . . . 55Making a Photograph Look Older . . 55Improving a Portrait . . . . . . . . . . . 57

gimp_FINAL_FINAL_pourPDF.indd 7 10/16/2012 11:45:48 AM

The Book of GIMP©2013, Olivier Lecarme and Karine Delvare

Contents in Detail 0 ix

The Move Path Tool . . . . . . . . . . . 156Binocular Animation . . . . . . . . . . . 156Improving the Binocular Animation . 158

6.5 Exercises . . . . . . . . . . . . . . . . . . 160

7 Image Preprocessing . . . . . . . . . 161

7.1 Tutorial: Extracting Informationfrom a Picture . . . . . . . . . . . . . . . 161Dynamics Extension . . . . . . . . . . . 161Histogram Modification . . . . . . . . 163Noise Reduction . . . . . . . . . . . . . 164Edge Detection . . . . . . . . . . . . . . 164

7.2 The Principles of Preprocessing . . . . 165Subjective Aspects of Preprocessing 165Histograms and Decomposition into

Channels . . . . . . . . . . . . . 166Extracting Information through

Dynamics Extension . . . . . . 1687.3 Filtering . . . . . . . . . . . . . . . . . . . 171

The Principles of Filtering . . . . . . . . 171Characteristic Matrices . . . . . . . . . 172Comparing the Built-in Filters . . . . . 173

7.4 Edge Detection . . . . . . . . . . . . . . 175The Principles of Edge Detection . . . 175Edge Detection Methods . . . . . . . . 176

7.5 Exercises . . . . . . . . . . . . . . . . . . 179

8 Designing a Website . . . . . . . . . 181

8.1 Tutorial: Laying Out a Website . . . . 181Planning . . . . . . . . . . . . . . . . . . 181Layout . . . . . . . . . . . . . . . . . . . . 182Adding Color . . . . . . . . . . . . . . . 182Choosing a Color Palette . . . . . . . . 183

8.2 Fixed- and Variable-Width Designs 1858.3 Web Design Tools . . . . . . . . . . . . 186

Image Map . . . . . . . . . . . . . . . . . 186Semi-Flatten . . . . . . . . . . . . . . . . 189Slice . . . . . . . . . . . . . . . . . . . . . 189

8.4 Optimizing Images for the Web . . . 190JPEG . . . . . . . . . . . . . . . . . . . . . 191GIF . . . . . . . . . . . . . . . . . . . . . . 191PNG . . . . . . . . . . . . . . . . . . . . . 191Transparency . . . . . . . . . . . . . . . 191

8.5 Exercises . . . . . . . . . . . . . . . . . . 192

Part II Reference9 The GIMP Interface . . . . . . . . . . 1959.1 The Main Windows . . . . . . . . . . . 195

Multi-Window Mode . . . . . . . . . . 195Single-Window Mode . . . . . . . . . 197Docking Windows and Dockable

Dialogs . . . . . . . . . . . . . . 198The Image Window . . . . . . . . . . . 202

9.2 Fundamental GIMP Commands . . . 203Closing Windows and Quitting GIMP 203Working with Multiple Images . . . . 204Common Tab Menu Options . . . . . 206

9.3 Working with the GIMP Interface . . 207Menus . . . . . . . . . . . . . . . . . . . . 207Keyboard Shortcuts . . . . . . . . . . . 207Keyboard Tips . . . . . . . . . . . . . . . 209Clicking and Dragging . . . . . . . . . 209

9.4 Creating, Loading, Saving, andExporting Files . . . . . . . . . . . . . . 210Creating a New Image . . . . . . . . . 210Loading a Web Page as an Image . 211Loading an Image from a File . . . . 212Saving an Image . . . . . . . . . . . . . 214Exporting an Image . . . . . . . . . . . 215

9.5 Undoing . . . . . . . . . . . . . . . . . . . 2179.6 The GIMP Help System . . . . . . . . . 219

10 Display . . . . . . . . . . . . . . . . . . . . 22110.1 Rulers and Units . . . . . . . . . . . . . 22110.2 Guides . . . . . . . . . . . . . . . . . . . . 22310.3 Grids . . . . . . . . . . . . . . . . . . . . . 22510.4 Zoom . . . . . . . . . . . . . . . . . . . . . 22610.5 Using Multiple Views . . . . . . . . . . 229

11 Layers . . . . . . . . . . . . . . . . . . . . . 23111.1 The Layers Dialog . . . . . . . . . . . . 231

Components of the Layers Dialog . . 231A Layer Entry in the Layers Dialog . 233Keyboard Shortcuts in the Layers

Dialog . . . . . . . . . . . . . . . 234Uses of the Layers Dialog . . . . . . . 234

11.2 The Layers Menu . . . . . . . . . . . . . 23411.3 Layer Groups . . . . . . . . . . . . . . . 23611.4 The Image: Layer Menu . . . . . . . . 238

The Stack Menu . . . . . . . . . . . . . . 239

viii Contents in Detail

Using Multiple Captures of theSame Scene . . . . . . . . . . . 58

2.6 Exercises . . . . . . . . . . . . . . . . . . 60

3 Drawing and Illustration . . . . . . 613.1 Tutorial: Colorizing a Drawing . . . . 61

The Black and White Drawing . . . . 61Using Layers to Keep Outlines Visible 61Defining Objects and Base Colors . . 63Coloring the Mushrooms . . . . . . . . 64Shading . . . . . . . . . . . . . . . . . . . 65Finishing Touches . . . . . . . . . . . . . 67

3.2 Painting and Drawing . . . . . . . . . . 68Brushes . . . . . . . . . . . . . . . . . . . 68The Pencil Tool . . . . . . . . . . . . . . 69The Paintbrush Tool . . . . . . . . . . . 71The Airbrush Tool . . . . . . . . . . . . 72The Ink Tool . . . . . . . . . . . . . . . . 73

3.3 Filling an Area . . . . . . . . . . . . . . 73The Bucket Fill Tool . . . . . . . . . . . . 73Gradients . . . . . . . . . . . . . . . . . . 74Patterns . . . . . . . . . . . . . . . . . . . 75

3.4 Dodging, Burning, and Smudging . 75The Dodge/Burn Tool . . . . . . . . . . 75The Smudge Tool . . . . . . . . . . . . . 76

3.5 The Digital Painting Process . . . . . . 78Composition . . . . . . . . . . . . . . . . 78Sky and Clouds . . . . . . . . . . . . . . 79Mountains . . . . . . . . . . . . . . . . . 80Hills . . . . . . . . . . . . . . . . . . . . . . 81Grassland . . . . . . . . . . . . . . . . . 81Trees . . . . . . . . . . . . . . . . . . . . . 82River . . . . . . . . . . . . . . . . . . . . . 84

3.6 Drawing Shapes . . . . . . . . . . . . . 85Drawing a Straight Line . . . . . . . . 85Drawing Ellipses and Rectangles . . . 86Drawing a Complex Shape . . . . . . 87

3.7 Exercises . . . . . . . . . . . . . . . . . . 88

4 Logos and Textures . . . . . . . . . . 894.1 Tutorial: Making a Luggage Tag . . . 894.2 Textures . . . . . . . . . . . . . . . . . . . 92

Tiling . . . . . . . . . . . . . . . . . . . . . 93Creating Textures . . . . . . . . . . . . . 95Using the Blend Tool . . . . . . . . . . . 96Using the Noise Filters . . . . . . . . . 101

Using the Embossing Filters . . . . . . 102More Ways to Create Textures . . . . 105

4.3 Logos . . . . . . . . . . . . . . . . . . . . 108The Text Tool . . . . . . . . . . . . . . . . 108Adding Relief . . . . . . . . . . . . . . . 108Proper Shade vs. Cast Shadow . . . 109Applying a Texture . . . . . . . . . . . 111

4.4 Exercises . . . . . . . . . . . . . . . . . . 113

5 Composite Photography . . . . . . 1155.1 Tutorial: Building a Composite

Portrait . . . . . . . . . . . . . . . . . . . 115Taking Features from Different

Portraits . . . . . . . . . . . . . . 116Smoothing Transitions . . . . . . . . . . 118

5.2 Selections, Overlaying, andBlending Modes . . . . . . . . . . . . . 119Masks and Selections . . . . . . . . . . 119Overlaying Images . . . . . . . . . . . . 121Using Blending Modes . . . . . . . . . 123

5.3 Building a Panorama . . . . . . . . . . 127Taking the Pictures . . . . . . . . . . . . 127Superimposing the Pictures . . . . . . 128Touching Up the Panorama . . . . . . 129The Pandora Plug-in . . . . . . . . . . . 131

5.4 Image Overlaying . . . . . . . . . . . . 131Digital Collage . . . . . . . . . . . . . . 131Self-Compositing . . . . . . . . . . . . . 134A Composite Photography Project . . 136

5.5 Exercises . . . . . . . . . . . . . . . . . . 138

6 Animation . . . . . . . . . . . . . . . . . . 1396.1 Tutorial: Animated Text . . . . . . . . . 139

Method One: Frame by Frame . . . . 139Method Two: Filtering All Layers . . . 140Method Three: Moving Along a Path 142

6.2 Building an Animated GIF by Hand 144Drawing a Rainbow Daisy . . . . . . . 145Zooming Toward the Viewer . . . . . 146Adding Rain to a Landscape . . . . . 148Adding Snow to a Landscape . . . . 150

6.3 Using Animation Tools . . . . . . . . . 151Interactive Deformation . . . . . . . . . 151Animating a Still Image . . . . . . . . 151Morphing . . . . . . . . . . . . . . . . . . 153

6.4 Using GAP . . . . . . . . . . . . . . . . . 155

gimp_FINAL_FINAL_pourPDF.indd 8 10/16/2012 11:45:49 AM

The Book of GIMP©2013, Olivier Lecarme and Karine Delvare

Contents in Detail 0 ix

The Move Path Tool . . . . . . . . . . . 156Binocular Animation . . . . . . . . . . . 156Improving the Binocular Animation . 158

6.5 Exercises . . . . . . . . . . . . . . . . . . 160

7 Image Preprocessing . . . . . . . . . 161

7.1 Tutorial: Extracting Informationfrom a Picture . . . . . . . . . . . . . . . 161Dynamics Extension . . . . . . . . . . . 161Histogram Modification . . . . . . . . 163Noise Reduction . . . . . . . . . . . . . 164Edge Detection . . . . . . . . . . . . . . 164

7.2 The Principles of Preprocessing . . . . 165Subjective Aspects of Preprocessing 165Histograms and Decomposition into

Channels . . . . . . . . . . . . . 166Extracting Information through

Dynamics Extension . . . . . . 1687.3 Filtering . . . . . . . . . . . . . . . . . . . 171

The Principles of Filtering . . . . . . . . 171Characteristic Matrices . . . . . . . . . 172Comparing the Built-in Filters . . . . . 173

7.4 Edge Detection . . . . . . . . . . . . . . 175The Principles of Edge Detection . . . 175Edge Detection Methods . . . . . . . . 176

7.5 Exercises . . . . . . . . . . . . . . . . . . 179

8 Designing a Website . . . . . . . . . 181

8.1 Tutorial: Laying Out a Website . . . . 181Planning . . . . . . . . . . . . . . . . . . 181Layout . . . . . . . . . . . . . . . . . . . . 182Adding Color . . . . . . . . . . . . . . . 182Choosing a Color Palette . . . . . . . . 183

8.2 Fixed- and Variable-Width Designs 1858.3 Web Design Tools . . . . . . . . . . . . 186

Image Map . . . . . . . . . . . . . . . . . 186Semi-Flatten . . . . . . . . . . . . . . . . 189Slice . . . . . . . . . . . . . . . . . . . . . 189

8.4 Optimizing Images for the Web . . . 190JPEG . . . . . . . . . . . . . . . . . . . . . 191GIF . . . . . . . . . . . . . . . . . . . . . . 191PNG . . . . . . . . . . . . . . . . . . . . . 191Transparency . . . . . . . . . . . . . . . 191

8.5 Exercises . . . . . . . . . . . . . . . . . . 192

Part II Reference9 The GIMP Interface . . . . . . . . . . 1959.1 The Main Windows . . . . . . . . . . . 195

Multi-Window Mode . . . . . . . . . . 195Single-Window Mode . . . . . . . . . 197Docking Windows and Dockable

Dialogs . . . . . . . . . . . . . . 198The Image Window . . . . . . . . . . . 202

9.2 Fundamental GIMP Commands . . . 203Closing Windows and Quitting GIMP 203Working with Multiple Images . . . . 204Common Tab Menu Options . . . . . 206

9.3 Working with the GIMP Interface . . 207Menus . . . . . . . . . . . . . . . . . . . . 207Keyboard Shortcuts . . . . . . . . . . . 207Keyboard Tips . . . . . . . . . . . . . . . 209Clicking and Dragging . . . . . . . . . 209

9.4 Creating, Loading, Saving, andExporting Files . . . . . . . . . . . . . . 210Creating a New Image . . . . . . . . . 210Loading a Web Page as an Image . 211Loading an Image from a File . . . . 212Saving an Image . . . . . . . . . . . . . 214Exporting an Image . . . . . . . . . . . 215

9.5 Undoing . . . . . . . . . . . . . . . . . . . 2179.6 The GIMP Help System . . . . . . . . . 219

10 Display . . . . . . . . . . . . . . . . . . . . 22110.1 Rulers and Units . . . . . . . . . . . . . 22110.2 Guides . . . . . . . . . . . . . . . . . . . . 22310.3 Grids . . . . . . . . . . . . . . . . . . . . . 22510.4 Zoom . . . . . . . . . . . . . . . . . . . . . 22610.5 Using Multiple Views . . . . . . . . . . 229

11 Layers . . . . . . . . . . . . . . . . . . . . . 23111.1 The Layers Dialog . . . . . . . . . . . . 231

Components of the Layers Dialog . . 231A Layer Entry in the Layers Dialog . 233Keyboard Shortcuts in the Layers

Dialog . . . . . . . . . . . . . . . 234Uses of the Layers Dialog . . . . . . . 234

11.2 The Layers Menu . . . . . . . . . . . . . 23411.3 Layer Groups . . . . . . . . . . . . . . . 23611.4 The Image: Layer Menu . . . . . . . . 238

The Stack Menu . . . . . . . . . . . . . . 239

viii Contents in Detail

Using Multiple Captures of theSame Scene . . . . . . . . . . . 58

2.6 Exercises . . . . . . . . . . . . . . . . . . 60

3 Drawing and Illustration . . . . . . 613.1 Tutorial: Colorizing a Drawing . . . . 61

The Black and White Drawing . . . . 61Using Layers to Keep Outlines Visible 61Defining Objects and Base Colors . . 63Coloring the Mushrooms . . . . . . . . 64Shading . . . . . . . . . . . . . . . . . . . 65Finishing Touches . . . . . . . . . . . . . 67

3.2 Painting and Drawing . . . . . . . . . . 68Brushes . . . . . . . . . . . . . . . . . . . 68The Pencil Tool . . . . . . . . . . . . . . 69The Paintbrush Tool . . . . . . . . . . . 71The Airbrush Tool . . . . . . . . . . . . 72The Ink Tool . . . . . . . . . . . . . . . . 73

3.3 Filling an Area . . . . . . . . . . . . . . 73The Bucket Fill Tool . . . . . . . . . . . . 73Gradients . . . . . . . . . . . . . . . . . . 74Patterns . . . . . . . . . . . . . . . . . . . 75

3.4 Dodging, Burning, and Smudging . 75The Dodge/Burn Tool . . . . . . . . . . 75The Smudge Tool . . . . . . . . . . . . . 76

3.5 The Digital Painting Process . . . . . . 78Composition . . . . . . . . . . . . . . . . 78Sky and Clouds . . . . . . . . . . . . . . 79Mountains . . . . . . . . . . . . . . . . . 80Hills . . . . . . . . . . . . . . . . . . . . . . 81Grassland . . . . . . . . . . . . . . . . . 81Trees . . . . . . . . . . . . . . . . . . . . . 82River . . . . . . . . . . . . . . . . . . . . . 84

3.6 Drawing Shapes . . . . . . . . . . . . . 85Drawing a Straight Line . . . . . . . . 85Drawing Ellipses and Rectangles . . . 86Drawing a Complex Shape . . . . . . 87

3.7 Exercises . . . . . . . . . . . . . . . . . . 88

4 Logos and Textures . . . . . . . . . . 894.1 Tutorial: Making a Luggage Tag . . . 894.2 Textures . . . . . . . . . . . . . . . . . . . 92

Tiling . . . . . . . . . . . . . . . . . . . . . 93Creating Textures . . . . . . . . . . . . . 95Using the Blend Tool . . . . . . . . . . . 96Using the Noise Filters . . . . . . . . . 101

Using the Embossing Filters . . . . . . 102More Ways to Create Textures . . . . 105

4.3 Logos . . . . . . . . . . . . . . . . . . . . 108The Text Tool . . . . . . . . . . . . . . . . 108Adding Relief . . . . . . . . . . . . . . . 108Proper Shade vs. Cast Shadow . . . 109Applying a Texture . . . . . . . . . . . 111

4.4 Exercises . . . . . . . . . . . . . . . . . . 113

5 Composite Photography . . . . . . 1155.1 Tutorial: Building a Composite

Portrait . . . . . . . . . . . . . . . . . . . 115Taking Features from Different

Portraits . . . . . . . . . . . . . . 116Smoothing Transitions . . . . . . . . . . 118

5.2 Selections, Overlaying, andBlending Modes . . . . . . . . . . . . . 119Masks and Selections . . . . . . . . . . 119Overlaying Images . . . . . . . . . . . . 121Using Blending Modes . . . . . . . . . 123

5.3 Building a Panorama . . . . . . . . . . 127Taking the Pictures . . . . . . . . . . . . 127Superimposing the Pictures . . . . . . 128Touching Up the Panorama . . . . . . 129The Pandora Plug-in . . . . . . . . . . . 131

5.4 Image Overlaying . . . . . . . . . . . . 131Digital Collage . . . . . . . . . . . . . . 131Self-Compositing . . . . . . . . . . . . . 134A Composite Photography Project . . 136

5.5 Exercises . . . . . . . . . . . . . . . . . . 138

6 Animation . . . . . . . . . . . . . . . . . . 1396.1 Tutorial: Animated Text . . . . . . . . . 139

Method One: Frame by Frame . . . . 139Method Two: Filtering All Layers . . . 140Method Three: Moving Along a Path 142

6.2 Building an Animated GIF by Hand 144Drawing a Rainbow Daisy . . . . . . . 145Zooming Toward the Viewer . . . . . 146Adding Rain to a Landscape . . . . . 148Adding Snow to a Landscape . . . . 150

6.3 Using Animation Tools . . . . . . . . . 151Interactive Deformation . . . . . . . . . 151Animating a Still Image . . . . . . . . 151Morphing . . . . . . . . . . . . . . . . . . 153

6.4 Using GAP . . . . . . . . . . . . . . . . . 155

gimp_FINAL_FINAL_pourPDF.indd 9 10/16/2012 11:45:49 AM

The Book of GIMP©2013, Olivier Lecarme and Karine Delvare

Contents in Detail 0 xi

The Eraser Tool . . . . . . . . . . . . . . 345The Airbrush Tool . . . . . . . . . . . . 346The Ink Tool . . . . . . . . . . . . . . . . 347

15.6 The Cloning Tools . . . . . . . . . . . . 348The Clone Tool . . . . . . . . . . . . . . 348The Heal Tool . . . . . . . . . . . . . . . 350The Perspective Clone Tool . . . . . . 350

15.7 The Modifying Tools . . . . . . . . . . . 351The Convolve Tool . . . . . . . . . . . . 351The Smudge Tool . . . . . . . . . . . . . 352The Dodge/Burn Tool . . . . . . . . . . 352

15.8 The Text Tool . . . . . . . . . . . . . . . . 353The Text Tool Options . . . . . . . . . . 353Choosing a Font . . . . . . . . . . . . . 355Using the Text Tool . . . . . . . . . . . . 356Editing Your Text . . . . . . . . . . . . . 357

15.9 The Color Picker Tool and theMeasure Tool . . . . . . . . . . . . . . . 358The Color Picker Tool . . . . . . . . . . 359The Measure Tool . . . . . . . . . . . . 360

15.10 Combining Tool Presets, Brushes,and Paint Dynamics . . . . . . . . . . . 361Getting to Know the Dialogs Involved 361Predefined Paint Dynamics . . . . . . 361Predefined Brushes . . . . . . . . . . . . 363Predefined Tool Presets . . . . . . . . . 364

16 Transformation Tools . . . . . . . . . 369

16.1 Global Transformations . . . . . . . . . 369Transforming an Image . . . . . . . . . 369Resizing an Image . . . . . . . . . . . . 371Cropping an Image . . . . . . . . . . . 374Transforming a Layer . . . . . . . . . . 375

16.2 Local Transformations . . . . . . . . . . 377Shared Properties . . . . . . . . . . . . 377The Move Tool . . . . . . . . . . . . . . . 381The Align Tool . . . . . . . . . . . . . . . 381The Crop Tool . . . . . . . . . . . . . . . 384The Rotate Tool . . . . . . . . . . . . . . 385The Scale Tool . . . . . . . . . . . . . . . 386The Shear Tool . . . . . . . . . . . . . . 387The Perspective Tool . . . . . . . . . . . 387The Flip Tool . . . . . . . . . . . . . . . . 388The Cage Transform Tool . . . . . . . 388

17 Filters . . . . . . . . . . . . . . . . . . . . . 39117.1 Common Properties . . . . . . . . . . . 39117.2 The Blur Filters . . . . . . . . . . . . . . . 393

Blur . . . . . . . . . . . . . . . . . . . . . . 393Gaussian Blur . . . . . . . . . . . . . . . 393Motion Blur . . . . . . . . . . . . . . . . . 394Pixelize . . . . . . . . . . . . . . . . . . . 395Selective Gaussian Blur . . . . . . . . . 396Tileable Blur . . . . . . . . . . . . . . . . 396

17.3 The Enhance Filters . . . . . . . . . . . 397Antialias . . . . . . . . . . . . . . . . . . 397Deinterlace . . . . . . . . . . . . . . . . . 397Despeckle . . . . . . . . . . . . . . . . . . 398Destripe . . . . . . . . . . . . . . . . . . . 400NL Filter . . . . . . . . . . . . . . . . . . . 400Red Eye Removal . . . . . . . . . . . . . 401Sharpen . . . . . . . . . . . . . . . . . . . 402Unsharp Mask . . . . . . . . . . . . . . . 402

17.4 The Distorts Filters . . . . . . . . . . . . 404Apply Lens . . . . . . . . . . . . . . . . . 404Curve Bend . . . . . . . . . . . . . . . . . 404Emboss . . . . . . . . . . . . . . . . . . . 405Engrave . . . . . . . . . . . . . . . . . . . 405IWarp . . . . . . . . . . . . . . . . . . . . 406Lens Distortion . . . . . . . . . . . . . . . 406Mosaic . . . . . . . . . . . . . . . . . . . 408Newsprint . . . . . . . . . . . . . . . . . 408Pagecurl . . . . . . . . . . . . . . . . . . . 409Polar Coordinates . . . . . . . . . . . . 410Ripple . . . . . . . . . . . . . . . . . . . . 411Shift . . . . . . . . . . . . . . . . . . . . . 411Value Propagate . . . . . . . . . . . . . 412Waves . . . . . . . . . . . . . . . . . . . . 414Whirl and Pinch . . . . . . . . . . . . . 414Wind . . . . . . . . . . . . . . . . . . . . . 414

17.5 The Light and Shadow Filters . . . . . 415Gradient Flare . . . . . . . . . . . . . . . 415Lens Flare . . . . . . . . . . . . . . . . . . 418Lighting Effects . . . . . . . . . . . . . . 418Sparkle . . . . . . . . . . . . . . . . . . . 420Supernova . . . . . . . . . . . . . . . . . 421Drop Shadow . . . . . . . . . . . . . . . 421Perspective . . . . . . . . . . . . . . . . . 422

17.6 The Noise Filters . . . . . . . . . . . . . 423HSV Noise . . . . . . . . . . . . . . . . . 423

x Contents in Detail

The Mask, Transparency, andTransform Menus . . . . . . . . 239

The Final Five Entries . . . . . . . . . . 240

12 Color . . . . . . . . . . . . . . . . . . . . . . 24112.1 Concepts . . . . . . . . . . . . . . . . . . 241

Color Models . . . . . . . . . . . . . . . 241Stored Representations . . . . . . . . . 242Indexed Mode . . . . . . . . . . . . . . . 243

12.2 Blending Modes . . . . . . . . . . . . . 244Modes That Leave Pixels Intact . . . . 245Lightening Modes . . . . . . . . . . . . 246Darkening Modes . . . . . . . . . . . . 247Luminosity Modes . . . . . . . . . . . . 248Color Distortion Modes . . . . . . . . . 249HSV Modes . . . . . . . . . . . . . . . . 251

12.3 Color Management . . . . . . . . . . . 252Color-Managed Workflow . . . . . . 252Using Color Management . . . . . . . 254

12.4 The Major Color Tools . . . . . . . . . 254The Color Chooser . . . . . . . . . . . . 254Levels . . . . . . . . . . . . . . . . . . . . 258Curves . . . . . . . . . . . . . . . . . . . . 261

12.5 Additional Color Tools . . . . . . . . . 263Color Balance . . . . . . . . . . . . . . . 263Hue-Saturation . . . . . . . . . . . . . . 264Colorize . . . . . . . . . . . . . . . . . . . 265Brightness-Contrast . . . . . . . . . . . 265Threshold . . . . . . . . . . . . . . . . . . 266Posterize . . . . . . . . . . . . . . . . . . 266Desaturate . . . . . . . . . . . . . . . . . 266Inversion . . . . . . . . . . . . . . . . . . 267

12.6 The Color Submenus . . . . . . . . . . 268The Auto Submenu . . . . . . . . . . . . 268The Components Submenu . . . . . . 270The Map Submenu . . . . . . . . . . . . 274The Info Submenu . . . . . . . . . . . . 278The Remaining Color Tools . . . . . . 280

13 Selections . . . . . . . . . . . . . . . . . . 28513.1 What Is a Selection? . . . . . . . . . . . 285

A Selection as an Outline . . . . . . . 285A Selection as a Grayscale Image . 286

13.2 The Seven Selection Tools . . . . . . . 287Common Options . . . . . . . . . . . . 287The Rectangle Select Tool . . . . . . . 289

The Ellipse Select Tool . . . . . . . . . . 292The Free Select Tool . . . . . . . . . . . 293The Fuzzy Select Tool . . . . . . . . . . 294The Select by Color Tool . . . . . . . . 296The Scissors Select Tool . . . . . . . . . 296The Foreground Select Tool . . . . . . 298

13.3 The Paths Tool . . . . . . . . . . . . . . . 300Building a Path . . . . . . . . . . . . . . 300Modifying a Path . . . . . . . . . . . . . 301Using a Path . . . . . . . . . . . . . . . . 303The Paths Dialog . . . . . . . . . . . . . 305

13.4 Using Selections . . . . . . . . . . . . . 306The Select Menu . . . . . . . . . . . . . 307The Edit Menu . . . . . . . . . . . . . . . 310Modifying the Selection Border . . . . 312

14 Masks . . . . . . . . . . . . . . . . . . . . . 31314.1 Selection Masks . . . . . . . . . . . . . . 313

The Channels Dialog . . . . . . . . . . 313Creating a Selection Mask . . . . . . . 316The Quick Mask Tool . . . . . . . . . . 317

14.2 Layer Masks . . . . . . . . . . . . . . . . 318Building a Layer Mask . . . . . . . . . 318Manipulating a Layer Mask . . . . . . 319Using a Layer Mask . . . . . . . . . . . 321

14.3 Using Masks and Channels . . . . . . 323Building a Natural Mask . . . . . . . . 323Transparency and the Alpha Channel 324Converting Masks, Selections, and

Channels . . . . . . . . . . . . . 327

15 Drawing Tools . . . . . . . . . . . . . . 32915.1 Digital Art . . . . . . . . . . . . . . . . . 32915.2 An Overview of the Drawing Tools . 32915.3 Shared Features . . . . . . . . . . . . . 330

Drawing Tool Options . . . . . . . . . 330Paint Dynamics . . . . . . . . . . . . . . 333Using Dockable Dialogs with

Drawing Tools . . . . . . . . . 335Six Useful Dockable Dialogs . . . . . 337

15.4 The Fill Tools . . . . . . . . . . . . . . . . 339The Bucket Fill Tool . . . . . . . . . . . . 339The Blend Tool . . . . . . . . . . . . . . . 340

15.5 The Painting Tools . . . . . . . . . . . . 343The Pencil Tool . . . . . . . . . . . . . . 343The Paintbrush Tool . . . . . . . . . . . 344

gimp_FINAL_FINAL_pourPDF.indd 10 10/16/2012 11:45:49 AM

The Book of GIMP©2013, Olivier Lecarme and Karine Delvare

Contents in Detail 0 xi

The Eraser Tool . . . . . . . . . . . . . . 345The Airbrush Tool . . . . . . . . . . . . 346The Ink Tool . . . . . . . . . . . . . . . . 347

15.6 The Cloning Tools . . . . . . . . . . . . 348The Clone Tool . . . . . . . . . . . . . . 348The Heal Tool . . . . . . . . . . . . . . . 350The Perspective Clone Tool . . . . . . 350

15.7 The Modifying Tools . . . . . . . . . . . 351The Convolve Tool . . . . . . . . . . . . 351The Smudge Tool . . . . . . . . . . . . . 352The Dodge/Burn Tool . . . . . . . . . . 352

15.8 The Text Tool . . . . . . . . . . . . . . . . 353The Text Tool Options . . . . . . . . . . 353Choosing a Font . . . . . . . . . . . . . 355Using the Text Tool . . . . . . . . . . . . 356Editing Your Text . . . . . . . . . . . . . 357

15.9 The Color Picker Tool and theMeasure Tool . . . . . . . . . . . . . . . 358The Color Picker Tool . . . . . . . . . . 359The Measure Tool . . . . . . . . . . . . 360

15.10 Combining Tool Presets, Brushes,and Paint Dynamics . . . . . . . . . . . 361Getting to Know the Dialogs Involved 361Predefined Paint Dynamics . . . . . . 361Predefined Brushes . . . . . . . . . . . . 363Predefined Tool Presets . . . . . . . . . 364

16 Transformation Tools . . . . . . . . . 369

16.1 Global Transformations . . . . . . . . . 369Transforming an Image . . . . . . . . . 369Resizing an Image . . . . . . . . . . . . 371Cropping an Image . . . . . . . . . . . 374Transforming a Layer . . . . . . . . . . 375

16.2 Local Transformations . . . . . . . . . . 377Shared Properties . . . . . . . . . . . . 377The Move Tool . . . . . . . . . . . . . . . 381The Align Tool . . . . . . . . . . . . . . . 381The Crop Tool . . . . . . . . . . . . . . . 384The Rotate Tool . . . . . . . . . . . . . . 385The Scale Tool . . . . . . . . . . . . . . . 386The Shear Tool . . . . . . . . . . . . . . 387The Perspective Tool . . . . . . . . . . . 387The Flip Tool . . . . . . . . . . . . . . . . 388The Cage Transform Tool . . . . . . . 388

17 Filters . . . . . . . . . . . . . . . . . . . . . 39117.1 Common Properties . . . . . . . . . . . 39117.2 The Blur Filters . . . . . . . . . . . . . . . 393

Blur . . . . . . . . . . . . . . . . . . . . . . 393Gaussian Blur . . . . . . . . . . . . . . . 393Motion Blur . . . . . . . . . . . . . . . . . 394Pixelize . . . . . . . . . . . . . . . . . . . 395Selective Gaussian Blur . . . . . . . . . 396Tileable Blur . . . . . . . . . . . . . . . . 396

17.3 The Enhance Filters . . . . . . . . . . . 397Antialias . . . . . . . . . . . . . . . . . . 397Deinterlace . . . . . . . . . . . . . . . . . 397Despeckle . . . . . . . . . . . . . . . . . . 398Destripe . . . . . . . . . . . . . . . . . . . 400NL Filter . . . . . . . . . . . . . . . . . . . 400Red Eye Removal . . . . . . . . . . . . . 401Sharpen . . . . . . . . . . . . . . . . . . . 402Unsharp Mask . . . . . . . . . . . . . . . 402

17.4 The Distorts Filters . . . . . . . . . . . . 404Apply Lens . . . . . . . . . . . . . . . . . 404Curve Bend . . . . . . . . . . . . . . . . . 404Emboss . . . . . . . . . . . . . . . . . . . 405Engrave . . . . . . . . . . . . . . . . . . . 405IWarp . . . . . . . . . . . . . . . . . . . . 406Lens Distortion . . . . . . . . . . . . . . . 406Mosaic . . . . . . . . . . . . . . . . . . . 408Newsprint . . . . . . . . . . . . . . . . . 408Pagecurl . . . . . . . . . . . . . . . . . . . 409Polar Coordinates . . . . . . . . . . . . 410Ripple . . . . . . . . . . . . . . . . . . . . 411Shift . . . . . . . . . . . . . . . . . . . . . 411Value Propagate . . . . . . . . . . . . . 412Waves . . . . . . . . . . . . . . . . . . . . 414Whirl and Pinch . . . . . . . . . . . . . 414Wind . . . . . . . . . . . . . . . . . . . . . 414

17.5 The Light and Shadow Filters . . . . . 415Gradient Flare . . . . . . . . . . . . . . . 415Lens Flare . . . . . . . . . . . . . . . . . . 418Lighting Effects . . . . . . . . . . . . . . 418Sparkle . . . . . . . . . . . . . . . . . . . 420Supernova . . . . . . . . . . . . . . . . . 421Drop Shadow . . . . . . . . . . . . . . . 421Perspective . . . . . . . . . . . . . . . . . 422

17.6 The Noise Filters . . . . . . . . . . . . . 423HSV Noise . . . . . . . . . . . . . . . . . 423

x Contents in Detail

The Mask, Transparency, andTransform Menus . . . . . . . . 239

The Final Five Entries . . . . . . . . . . 240

12 Color . . . . . . . . . . . . . . . . . . . . . . 24112.1 Concepts . . . . . . . . . . . . . . . . . . 241

Color Models . . . . . . . . . . . . . . . 241Stored Representations . . . . . . . . . 242Indexed Mode . . . . . . . . . . . . . . . 243

12.2 Blending Modes . . . . . . . . . . . . . 244Modes That Leave Pixels Intact . . . . 245Lightening Modes . . . . . . . . . . . . 246Darkening Modes . . . . . . . . . . . . 247Luminosity Modes . . . . . . . . . . . . 248Color Distortion Modes . . . . . . . . . 249HSV Modes . . . . . . . . . . . . . . . . 251

12.3 Color Management . . . . . . . . . . . 252Color-Managed Workflow . . . . . . 252Using Color Management . . . . . . . 254

12.4 The Major Color Tools . . . . . . . . . 254The Color Chooser . . . . . . . . . . . . 254Levels . . . . . . . . . . . . . . . . . . . . 258Curves . . . . . . . . . . . . . . . . . . . . 261

12.5 Additional Color Tools . . . . . . . . . 263Color Balance . . . . . . . . . . . . . . . 263Hue-Saturation . . . . . . . . . . . . . . 264Colorize . . . . . . . . . . . . . . . . . . . 265Brightness-Contrast . . . . . . . . . . . 265Threshold . . . . . . . . . . . . . . . . . . 266Posterize . . . . . . . . . . . . . . . . . . 266Desaturate . . . . . . . . . . . . . . . . . 266Inversion . . . . . . . . . . . . . . . . . . 267

12.6 The Color Submenus . . . . . . . . . . 268The Auto Submenu . . . . . . . . . . . . 268The Components Submenu . . . . . . 270The Map Submenu . . . . . . . . . . . . 274The Info Submenu . . . . . . . . . . . . 278The Remaining Color Tools . . . . . . 280

13 Selections . . . . . . . . . . . . . . . . . . 28513.1 What Is a Selection? . . . . . . . . . . . 285

A Selection as an Outline . . . . . . . 285A Selection as a Grayscale Image . 286

13.2 The Seven Selection Tools . . . . . . . 287Common Options . . . . . . . . . . . . 287The Rectangle Select Tool . . . . . . . 289

The Ellipse Select Tool . . . . . . . . . . 292The Free Select Tool . . . . . . . . . . . 293The Fuzzy Select Tool . . . . . . . . . . 294The Select by Color Tool . . . . . . . . 296The Scissors Select Tool . . . . . . . . . 296The Foreground Select Tool . . . . . . 298

13.3 The Paths Tool . . . . . . . . . . . . . . . 300Building a Path . . . . . . . . . . . . . . 300Modifying a Path . . . . . . . . . . . . . 301Using a Path . . . . . . . . . . . . . . . . 303The Paths Dialog . . . . . . . . . . . . . 305

13.4 Using Selections . . . . . . . . . . . . . 306The Select Menu . . . . . . . . . . . . . 307The Edit Menu . . . . . . . . . . . . . . . 310Modifying the Selection Border . . . . 312

14 Masks . . . . . . . . . . . . . . . . . . . . . 31314.1 Selection Masks . . . . . . . . . . . . . . 313

The Channels Dialog . . . . . . . . . . 313Creating a Selection Mask . . . . . . . 316The Quick Mask Tool . . . . . . . . . . 317

14.2 Layer Masks . . . . . . . . . . . . . . . . 318Building a Layer Mask . . . . . . . . . 318Manipulating a Layer Mask . . . . . . 319Using a Layer Mask . . . . . . . . . . . 321

14.3 Using Masks and Channels . . . . . . 323Building a Natural Mask . . . . . . . . 323Transparency and the Alpha Channel 324Converting Masks, Selections, and

Channels . . . . . . . . . . . . . 327

15 Drawing Tools . . . . . . . . . . . . . . 32915.1 Digital Art . . . . . . . . . . . . . . . . . 32915.2 An Overview of the Drawing Tools . 32915.3 Shared Features . . . . . . . . . . . . . 330

Drawing Tool Options . . . . . . . . . 330Paint Dynamics . . . . . . . . . . . . . . 333Using Dockable Dialogs with

Drawing Tools . . . . . . . . . 335Six Useful Dockable Dialogs . . . . . 337

15.4 The Fill Tools . . . . . . . . . . . . . . . . 339The Bucket Fill Tool . . . . . . . . . . . . 339The Blend Tool . . . . . . . . . . . . . . . 340

15.5 The Painting Tools . . . . . . . . . . . . 343The Pencil Tool . . . . . . . . . . . . . . 343The Paintbrush Tool . . . . . . . . . . . 344

gimp_FINAL_FINAL_pourPDF.indd 11 10/16/2012 11:45:49 AM

The Book of GIMP©2013, Olivier Lecarme and Karine Delvare

Contents in Detail 0 xiii

Manipulating Frames . . . . . . . . . . 493Converting Between File Formats . . 494Modifying Frames . . . . . . . . . . . . 495Altering Layers . . . . . . . . . . . . . . 497Converting Between Multilayer and

Multiframe . . . . . . . . . . . . 497Encoding . . . . . . . . . . . . . . . . . . 499Playback and Navigator . . . . . . . . 500Split Video into Frames . . . . . . . . . 502Bluebox . . . . . . . . . . . . . . . . . . . 503Onionskin . . . . . . . . . . . . . . . . . 504Storyboard . . . . . . . . . . . . . . . . . 505

19 Obtaining and Printing Images 50919.1 Capturing Screenshots . . . . . . . . . 50919.2 Scanning . . . . . . . . . . . . . . . . . . 510

Scanners and Drivers . . . . . . . . . . 510XSane and GIMP . . . . . . . . . . . . . 512Selecting an Area to Scan . . . . . . . 512Setting the Scanning Parameters . . . 514Scan Modes . . . . . . . . . . . . . . . . 515Scanning Resolutions . . . . . . . . . . 517Color Handling . . . . . . . . . . . . . . 518

19.3 Digital Cameras . . . . . . . . . . . . . 520Importing Photographs into GIMP . . 520Choosing a Format . . . . . . . . . . . 521Handling Raw Photographs . . . . . . 523

19.4 Printing . . . . . . . . . . . . . . . . . . . 525The Principles of Printing . . . . . . . . 525Printing with the GTK Interface . . . . 527Printing with Gutenprint . . . . . . . . 529

19.5 Scanning and Printing with Windows 531

20 Image Formats . . . . . . . . . . . . . . 53320.1 An Overview of File Formats . . . . . 533

Raster and Vector Formats . . . . . . . 533Lossless and Lossy Compression . . . 534Layout Engines and Browsers . . . . . 536

20.2 JPEG, GIF, and PNG . . . . . . . . . . 537JPEG . . . . . . . . . . . . . . . . . . . . . 537GIF . . . . . . . . . . . . . . . . . . . . . . 538PNG . . . . . . . . . . . . . . . . . . . . . 541

20.3 GIMP’s Native Formats . . . . . . . . . 542XCF . . . . . . . . . . . . . . . . . . . . . . 542Other Native Formats . . . . . . . . . . 543

20.4 Other Useful Formats . . . . . . . . . . 543

PostScript and PDF . . . . . . . . . . . . 544TIFF . . . . . . . . . . . . . . . . . . . . . . 545Netpbm Formats . . . . . . . . . . . . . 545SVG . . . . . . . . . . . . . . . . . . . . . 546Additional Formats Supported by

GIMP . . . . . . . . . . . . . . . 546

21 Scripts and Plug-ins . . . . . . . . . . 547

21.1 About Scripts and Plug-ins . . . . . . . 547Scheme, Python, and C . . . . . . . . . 547Installed Plug-ins . . . . . . . . . . . . . 548Finding New Plug-ins . . . . . . . . . . 549

21.2 Noteworthy Plug-ins . . . . . . . . . . . 549Photo Effects . . . . . . . . . . . . . . . . 550G’MIC . . . . . . . . . . . . . . . . . . . . 550Liquid Rescale . . . . . . . . . . . . . . . 550Elsamuko Scripts . . . . . . . . . . . . . 553

21.3 Writing Plug-ins . . . . . . . . . . . . . 554Scheme . . . . . . . . . . . . . . . . . . . 554Python . . . . . . . . . . . . . . . . . . . . 556C . . . . . . . . . . . . . . . . . . . . . . . 558

22 Customizing GIMP . . . . . . . . . . . 561

22.1 The Preferences Dialog . . . . . . . . . 561Environment . . . . . . . . . . . . . . . . 561User Interface . . . . . . . . . . . . . . . 562Theme . . . . . . . . . . . . . . . . . . . . 563Help System . . . . . . . . . . . . . . . . 563Tool Options . . . . . . . . . . . . . . . . 563Toolbox . . . . . . . . . . . . . . . . . . . 564Default New Image . . . . . . . . . . . 564Default Image Grid . . . . . . . . . . . 565Image Windows . . . . . . . . . . . . . 565Display . . . . . . . . . . . . . . . . . . . 567Color Management . . . . . . . . . . . 567Input Devices . . . . . . . . . . . . . . . 569Window Management . . . . . . . . . 569Folders . . . . . . . . . . . . . . . . . . . . 571

22.2 Additional Preferences in the EditMenu . . . . . . . . . . . . . . . . . . . . . 571Keyboard Shortcuts . . . . . . . . . . . 571Modules . . . . . . . . . . . . . . . . . . . 572Units . . . . . . . . . . . . . . . . . . . . . 573

22.3 Customizing Image Views . . . . . . . 573Display Filters . . . . . . . . . . . . . . . 573

xii Contents in Detail

Hurl . . . . . . . . . . . . . . . . . . . . . . 423Pick . . . . . . . . . . . . . . . . . . . . . . 424RGB Noise . . . . . . . . . . . . . . . . . 424Slur . . . . . . . . . . . . . . . . . . . . . . 425Spread . . . . . . . . . . . . . . . . . . . 425

17.7 The Edge-Detect Filters . . . . . . . . . 426Difference of Gaussians . . . . . . . . 426Edge . . . . . . . . . . . . . . . . . . . . . 426Laplace . . . . . . . . . . . . . . . . . . . 427Neon . . . . . . . . . . . . . . . . . . . . . 428Sobel . . . . . . . . . . . . . . . . . . . . . 428

17.8 The Generic Filters . . . . . . . . . . . . 429Convolution Matrix . . . . . . . . . . . 429Dilate . . . . . . . . . . . . . . . . . . . . 430Erode . . . . . . . . . . . . . . . . . . . . 430

17.9 The Combine Filters . . . . . . . . . . . 430Depth Merge . . . . . . . . . . . . . . . . 430

17.10 The Artistic Filters . . . . . . . . . . . . . 431Apply Canvas . . . . . . . . . . . . . . . 432Cartoon . . . . . . . . . . . . . . . . . . . 432Clothify . . . . . . . . . . . . . . . . . . . 433Cubism . . . . . . . . . . . . . . . . . . . 433GIMPressionist . . . . . . . . . . . . . . 434Glass Tile . . . . . . . . . . . . . . . . . . 438Oilify . . . . . . . . . . . . . . . . . . . . . 438Photocopy . . . . . . . . . . . . . . . . . 439Softglow . . . . . . . . . . . . . . . . . . . 440Van Gogh . . . . . . . . . . . . . . . . . 440Weave . . . . . . . . . . . . . . . . . . . . 441

17.11 The Decor Filters . . . . . . . . . . . . . 442Add Bevel . . . . . . . . . . . . . . . . . 442Add Border . . . . . . . . . . . . . . . . 442Coffee Stain . . . . . . . . . . . . . . . . 443Fuzzy Border . . . . . . . . . . . . . . . 443Old Photo . . . . . . . . . . . . . . . . . . 443Round Corners . . . . . . . . . . . . . . 444

17.12 The Map Filters . . . . . . . . . . . . . . 444Bump Map . . . . . . . . . . . . . . . . . 444Displace . . . . . . . . . . . . . . . . . . . 445Fractal Trace . . . . . . . . . . . . . . . . 447Illusion . . . . . . . . . . . . . . . . . . . . 447Make Seamless . . . . . . . . . . . . . . 447Map Object . . . . . . . . . . . . . . . . 448Paper Tile . . . . . . . . . . . . . . . . . . 449Small Tiles . . . . . . . . . . . . . . . . . 451

Tile . . . . . . . . . . . . . . . . . . . . . . 451Warp . . . . . . . . . . . . . . . . . . . . 452

17.13 The Render Filters . . . . . . . . . . . . 453Clouds Filters . . . . . . . . . . . . . . . 453Nature Filters . . . . . . . . . . . . . . . 454Pattern Filters . . . . . . . . . . . . . . . 458Circuit . . . . . . . . . . . . . . . . . . . . 466Fractal Explorer . . . . . . . . . . . . . . 466Gfig . . . . . . . . . . . . . . . . . . . . . 468Lava . . . . . . . . . . . . . . . . . . . . . 470Line Nova . . . . . . . . . . . . . . . . . . 471Sphere Designer . . . . . . . . . . . . . 471Spyrogimp . . . . . . . . . . . . . . . . . 472

18 Animation Tools . . . . . . . . . . . . . 475

18.1 Principles of Animation . . . . . . . . . 475Frame Frequency and Vision . . . . . 475Frames and Layers . . . . . . . . . . . . 476Output Formats . . . . . . . . . . . . . . 476Optimizing Animations . . . . . . . . . 477

18.2 Tools for Building MultilayerAnimations . . . . . . . . . . . . . . . . . 478Animating by Hand . . . . . . . . . . . 478The IWarp Tool . . . . . . . . . . . . . . 478The Morph Tool . . . . . . . . . . . . . . 478Filtering All Layers . . . . . . . . . . . . 481

18.3 The Animation Menu . . . . . . . . . . 483Blend . . . . . . . . . . . . . . . . . . . . . 483Burn-In . . . . . . . . . . . . . . . . . . . . 483Rippling . . . . . . . . . . . . . . . . . . . 484Selection to Animimage . . . . . . . . 485Spinning Globe . . . . . . . . . . . . . . 485Waves . . . . . . . . . . . . . . . . . . . . 486Optimizing and Playing an

Animation . . . . . . . . . . . . 48618.4 The Move Path Tool . . . . . . . . . . . 487

Choosing the Source Layers . . . . . . 488Choosing the Destination Frames . . 489Applying Transformations . . . . . . . 489Control Points . . . . . . . . . . . . . . . 490Key Frames . . . . . . . . . . . . . . . . . 492The Preview Window . . . . . . . . . . 492Testing the Move Path Tool . . . . . . 492Advanced Settings . . . . . . . . . . . . 493

18.5 The Video Menu . . . . . . . . . . . . . 493

gimp_FINAL_FINAL_pourPDF.indd 12 10/16/2012 11:45:49 AM

The Book of GIMP©2013, Olivier Lecarme and Karine Delvare

Contents in Detail 0 xiii

Manipulating Frames . . . . . . . . . . 493Converting Between File Formats . . 494Modifying Frames . . . . . . . . . . . . 495Altering Layers . . . . . . . . . . . . . . 497Converting Between Multilayer and

Multiframe . . . . . . . . . . . . 497Encoding . . . . . . . . . . . . . . . . . . 499Playback and Navigator . . . . . . . . 500Split Video into Frames . . . . . . . . . 502Bluebox . . . . . . . . . . . . . . . . . . . 503Onionskin . . . . . . . . . . . . . . . . . 504Storyboard . . . . . . . . . . . . . . . . . 505

19 Obtaining and Printing Images 50919.1 Capturing Screenshots . . . . . . . . . 50919.2 Scanning . . . . . . . . . . . . . . . . . . 510

Scanners and Drivers . . . . . . . . . . 510XSane and GIMP . . . . . . . . . . . . . 512Selecting an Area to Scan . . . . . . . 512Setting the Scanning Parameters . . . 514Scan Modes . . . . . . . . . . . . . . . . 515Scanning Resolutions . . . . . . . . . . 517Color Handling . . . . . . . . . . . . . . 518

19.3 Digital Cameras . . . . . . . . . . . . . 520Importing Photographs into GIMP . . 520Choosing a Format . . . . . . . . . . . 521Handling Raw Photographs . . . . . . 523

19.4 Printing . . . . . . . . . . . . . . . . . . . 525The Principles of Printing . . . . . . . . 525Printing with the GTK Interface . . . . 527Printing with Gutenprint . . . . . . . . 529

19.5 Scanning and Printing with Windows 531

20 Image Formats . . . . . . . . . . . . . . 53320.1 An Overview of File Formats . . . . . 533

Raster and Vector Formats . . . . . . . 533Lossless and Lossy Compression . . . 534Layout Engines and Browsers . . . . . 536

20.2 JPEG, GIF, and PNG . . . . . . . . . . 537JPEG . . . . . . . . . . . . . . . . . . . . . 537GIF . . . . . . . . . . . . . . . . . . . . . . 538PNG . . . . . . . . . . . . . . . . . . . . . 541

20.3 GIMP’s Native Formats . . . . . . . . . 542XCF . . . . . . . . . . . . . . . . . . . . . . 542Other Native Formats . . . . . . . . . . 543

20.4 Other Useful Formats . . . . . . . . . . 543

PostScript and PDF . . . . . . . . . . . . 544TIFF . . . . . . . . . . . . . . . . . . . . . . 545Netpbm Formats . . . . . . . . . . . . . 545SVG . . . . . . . . . . . . . . . . . . . . . 546Additional Formats Supported by

GIMP . . . . . . . . . . . . . . . 546

21 Scripts and Plug-ins . . . . . . . . . . 547

21.1 About Scripts and Plug-ins . . . . . . . 547Scheme, Python, and C . . . . . . . . . 547Installed Plug-ins . . . . . . . . . . . . . 548Finding New Plug-ins . . . . . . . . . . 549

21.2 Noteworthy Plug-ins . . . . . . . . . . . 549Photo Effects . . . . . . . . . . . . . . . . 550G’MIC . . . . . . . . . . . . . . . . . . . . 550Liquid Rescale . . . . . . . . . . . . . . . 550Elsamuko Scripts . . . . . . . . . . . . . 553

21.3 Writing Plug-ins . . . . . . . . . . . . . 554Scheme . . . . . . . . . . . . . . . . . . . 554Python . . . . . . . . . . . . . . . . . . . . 556C . . . . . . . . . . . . . . . . . . . . . . . 558

22 Customizing GIMP . . . . . . . . . . . 561

22.1 The Preferences Dialog . . . . . . . . . 561Environment . . . . . . . . . . . . . . . . 561User Interface . . . . . . . . . . . . . . . 562Theme . . . . . . . . . . . . . . . . . . . . 563Help System . . . . . . . . . . . . . . . . 563Tool Options . . . . . . . . . . . . . . . . 563Toolbox . . . . . . . . . . . . . . . . . . . 564Default New Image . . . . . . . . . . . 564Default Image Grid . . . . . . . . . . . 565Image Windows . . . . . . . . . . . . . 565Display . . . . . . . . . . . . . . . . . . . 567Color Management . . . . . . . . . . . 567Input Devices . . . . . . . . . . . . . . . 569Window Management . . . . . . . . . 569Folders . . . . . . . . . . . . . . . . . . . . 571

22.2 Additional Preferences in the EditMenu . . . . . . . . . . . . . . . . . . . . . 571Keyboard Shortcuts . . . . . . . . . . . 571Modules . . . . . . . . . . . . . . . . . . . 572Units . . . . . . . . . . . . . . . . . . . . . 573

22.3 Customizing Image Views . . . . . . . 573Display Filters . . . . . . . . . . . . . . . 573

xii Contents in Detail

Hurl . . . . . . . . . . . . . . . . . . . . . . 423Pick . . . . . . . . . . . . . . . . . . . . . . 424RGB Noise . . . . . . . . . . . . . . . . . 424Slur . . . . . . . . . . . . . . . . . . . . . . 425Spread . . . . . . . . . . . . . . . . . . . 425

17.7 The Edge-Detect Filters . . . . . . . . . 426Difference of Gaussians . . . . . . . . 426Edge . . . . . . . . . . . . . . . . . . . . . 426Laplace . . . . . . . . . . . . . . . . . . . 427Neon . . . . . . . . . . . . . . . . . . . . . 428Sobel . . . . . . . . . . . . . . . . . . . . . 428

17.8 The Generic Filters . . . . . . . . . . . . 429Convolution Matrix . . . . . . . . . . . 429Dilate . . . . . . . . . . . . . . . . . . . . 430Erode . . . . . . . . . . . . . . . . . . . . 430

17.9 The Combine Filters . . . . . . . . . . . 430Depth Merge . . . . . . . . . . . . . . . . 430

17.10 The Artistic Filters . . . . . . . . . . . . . 431Apply Canvas . . . . . . . . . . . . . . . 432Cartoon . . . . . . . . . . . . . . . . . . . 432Clothify . . . . . . . . . . . . . . . . . . . 433Cubism . . . . . . . . . . . . . . . . . . . 433GIMPressionist . . . . . . . . . . . . . . 434Glass Tile . . . . . . . . . . . . . . . . . . 438Oilify . . . . . . . . . . . . . . . . . . . . . 438Photocopy . . . . . . . . . . . . . . . . . 439Softglow . . . . . . . . . . . . . . . . . . . 440Van Gogh . . . . . . . . . . . . . . . . . 440Weave . . . . . . . . . . . . . . . . . . . . 441

17.11 The Decor Filters . . . . . . . . . . . . . 442Add Bevel . . . . . . . . . . . . . . . . . 442Add Border . . . . . . . . . . . . . . . . 442Coffee Stain . . . . . . . . . . . . . . . . 443Fuzzy Border . . . . . . . . . . . . . . . 443Old Photo . . . . . . . . . . . . . . . . . . 443Round Corners . . . . . . . . . . . . . . 444

17.12 The Map Filters . . . . . . . . . . . . . . 444Bump Map . . . . . . . . . . . . . . . . . 444Displace . . . . . . . . . . . . . . . . . . . 445Fractal Trace . . . . . . . . . . . . . . . . 447Illusion . . . . . . . . . . . . . . . . . . . . 447Make Seamless . . . . . . . . . . . . . . 447Map Object . . . . . . . . . . . . . . . . 448Paper Tile . . . . . . . . . . . . . . . . . . 449Small Tiles . . . . . . . . . . . . . . . . . 451

Tile . . . . . . . . . . . . . . . . . . . . . . 451Warp . . . . . . . . . . . . . . . . . . . . 452

17.13 The Render Filters . . . . . . . . . . . . 453Clouds Filters . . . . . . . . . . . . . . . 453Nature Filters . . . . . . . . . . . . . . . 454Pattern Filters . . . . . . . . . . . . . . . 458Circuit . . . . . . . . . . . . . . . . . . . . 466Fractal Explorer . . . . . . . . . . . . . . 466Gfig . . . . . . . . . . . . . . . . . . . . . 468Lava . . . . . . . . . . . . . . . . . . . . . 470Line Nova . . . . . . . . . . . . . . . . . . 471Sphere Designer . . . . . . . . . . . . . 471Spyrogimp . . . . . . . . . . . . . . . . . 472

18 Animation Tools . . . . . . . . . . . . . 475

18.1 Principles of Animation . . . . . . . . . 475Frame Frequency and Vision . . . . . 475Frames and Layers . . . . . . . . . . . . 476Output Formats . . . . . . . . . . . . . . 476Optimizing Animations . . . . . . . . . 477

18.2 Tools for Building MultilayerAnimations . . . . . . . . . . . . . . . . . 478Animating by Hand . . . . . . . . . . . 478The IWarp Tool . . . . . . . . . . . . . . 478The Morph Tool . . . . . . . . . . . . . . 478Filtering All Layers . . . . . . . . . . . . 481

18.3 The Animation Menu . . . . . . . . . . 483Blend . . . . . . . . . . . . . . . . . . . . . 483Burn-In . . . . . . . . . . . . . . . . . . . . 483Rippling . . . . . . . . . . . . . . . . . . . 484Selection to Animimage . . . . . . . . 485Spinning Globe . . . . . . . . . . . . . . 485Waves . . . . . . . . . . . . . . . . . . . . 486Optimizing and Playing an

Animation . . . . . . . . . . . . 48618.4 The Move Path Tool . . . . . . . . . . . 487

Choosing the Source Layers . . . . . . 488Choosing the Destination Frames . . 489Applying Transformations . . . . . . . 489Control Points . . . . . . . . . . . . . . . 490Key Frames . . . . . . . . . . . . . . . . . 492The Preview Window . . . . . . . . . . 492Testing the Move Path Tool . . . . . . 492Advanced Settings . . . . . . . . . . . . 493

18.5 The Video Menu . . . . . . . . . . . . . 493

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

The Book of GIMP©2013, Olivier Lecarme and Karine Delvare

IntroductionGIMP stands for GNU Image Manipulation Pro-gram, and it is one of the most successful appli-cations in the world of free software. The nameGNU is a recursive acronym: GNU’s Not Unix,coined in 1983 by the celebrated Richard M.Stallman as a name for his pet project—a freesoftware, Unix-like operating system.

Free software is a term used to describe soft-ware that can be used, studied, modified, andredistributed by anyone with only one, very rea-sonable restriction: that other users enjoy thesame freedom to use the software and to exam-ine and modify the software’s code. Free soft-ware is generally available without charge, butsometimes there is a fee.

The word free must be understood as in “freespeech” rather than “free beer.” The termsoftware libre is gaining some popularity, as itnegates this ambiguity. The French word libremeans free in the sense of liberty, whereas theword gratuitmeans free of charge.

GIMP is freely distributed to (and by) any-body, and anybody can look at its contents andits source code and can add features or fix prob-lems. The only restriction is that, if you makeany change to GIMP and want to redistributeit to other people, you must do it in a way thatgrants the recipients exactly the same freedomthat you enjoyed.

GIMP began in 1995 as the school projectof two university students; now GIMP is a full-fledged application, available on all distribu-tions of GNU/Linux and on recent versions of

Microsoft Windows and Mac OS X. InstallingGIMP is fairly easy, and if you haven’t alreadydone so, take a minute and install GIMP now(see Appendix E for installation instructions).

Compared to the dominant commercialimage-manipulation application, which is de-veloped by an army of well-paid programmers,GIMP is currently developed by a very smallteam of unpaid, but enthusiastic, volunteer pro-grammers. Keep this in mind if (read: when)you run into glitches in the program or whena feature you’d like to have isn’t available. Re-member the GIMP credo: “If you want it sobadly, make it, and share it with the rest of us!”Welcome to the world of free software!

This Book

When the idea for this book began to take formin the beginning of 2006, we imagined finishingit in 2010 and covering GIMP 3.0. The firstgoal was nearly met for the French edition—thatwas under our control—but GIMP 3.0 is still faroff because volunteer developers can work onlywhen they have time to do so. Still, GIMP 2.8 isa great leap forward compared to the previousversion, GIMP 2.6. Some of the most note-worthy new features include a single-windowinterface; completely revised and more power-ful brush dynamics; clarification of saving versusexporting images; improved handling of dock-able dialogs; support for layer groups; the abilityto lock pixels, channels, and paths; an improved

xiv Contents in Detail

Hiding or Revealing Parts of theImage Window . . . . . . . . . 575

Padding Colors and Snapping . . . . 57622.4 Building New Brushes . . . . . . . . . . 576

Defining an Ordinary Brush . . . . . . 577Defining a Color Brush . . . . . . . . . 577Defining an Animated Brush . . . . . 577Defining a Parametric Brush . . . . . 579

22.5 Building New Patterns . . . . . . . . . 58022.6 Building New Gradients . . . . . . . . 581

The Gradient Editor . . . . . . . . . . . 581The Gradient Editor Menu . . . . . . . 582Building a Gradient . . . . . . . . . . . 584

22.7 Building New Palettes . . . . . . . . . . 585The Palette Editor . . . . . . . . . . . . . 586Importing Palettes . . . . . . . . . . . . 586Exporting and Duplicating Palettes . 587Palette to Gradient and Sort Palette . 587Indexed Palettes . . . . . . . . . . . . . . 588

Part III AppendicesA Vision and Image

Representation . . . . . . . . . . . . . . 591

A.1 The Physiology of Vision . . . . . . . . 591How the Human Eye Works . . . . . . 591Color Perception . . . . . . . . . . . . . 592Color Blindness . . . . . . . . . . . . . . 593Optical Illusions . . . . . . . . . . . . . . 595

A.2 Image Representation . . . . . . . . . . 597Discretization . . . . . . . . . . . . . . . 597Digitalization . . . . . . . . . . . . . . . 598Compression . . . . . . . . . . . . . . . . 600

A.3 Color Representation . . . . . . . . . . 602How Colors Are Produced . . . . . . . 602The Additive Model . . . . . . . . . . . 604The Subtractive Model . . . . . . . . . 606The HSV Model . . . . . . . . . . . . . . 607

A.4 Exercises . . . . . . . . . . . . . . . . . . 608

B Tips and Hints for SelectedExercises . . . . . . . . . . . . . . . . . . . 609

C Resources . . . . . . . . . . . . . . . . . . 613

C.1 Official GIMP Pages . . . . . . . . . . . 613C.2 Related Official Sites . . . . . . . . . . 614

C.3 Tutorials . . . . . . . . . . . . . . . . . . . 614C.4 Communities and Blogs . . . . . . . . . 615C.5 Brushes and Plug-ins . . . . . . . . . . 615

Brush Sets . . . . . . . . . . . . . . . . . . 616Plug-in Sets . . . . . . . . . . . . . . . . . 616

C.6 Mailing Lists and IRC Channels . . . . 616C.7 Other Graphics Applications . . . . . 616C.8 Related Graphics Software Projects . 617C.9 Other Graphics Sites . . . . . . . . . . 617

D Frequently Asked Questions . . . 619D.1 What Does the Future Hold? . . . . . 619D.2 How...? . . . . . . . . . . . . . . . . . . . 620D.3 Why...? . . . . . . . . . . . . . . . . . . . 622

E Installing GIMP . . . . . . . . . . . . . . 625E.1 GNU/Linux and Unix . . . . . . . . . . 625

Debian . . . . . . . . . . . . . . . . . . . 625Ubuntu . . . . . . . . . . . . . . . . . . . . 626Mint . . . . . . . . . . . . . . . . . . . . . 626Fedora . . . . . . . . . . . . . . . . . . . . 626OpenSUSE . . . . . . . . . . . . . . . . . 626Mandriva . . . . . . . . . . . . . . . . . . 626Other Unix-like Operating Systems . 626

E.2 Windows . . . . . . . . . . . . . . . . . . 627E.3 Mac OS X . . . . . . . . . . . . . . . . . 627

F Batch Processing . . . . . . . . . . . . 629F.1 GIMP Batch Mode . . . . . . . . . . . . 629F.2 David’s Batch Processor . . . . . . . . 630F.3 ImageMagick . . . . . . . . . . . . . . . 632

Calling ImageMagick . . . . . . . . . . 632Building Thumbnails . . . . . . . . . . . 633Labels and Transformations . . . . . . 634

Index . . . . . . . . . . . . . . . . . . . . . . . . . 635

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

The Book of GIMP©2013, Olivier Lecarme and Karine Delvare