2.7 Combining Layers
Keywords: GIMP, gimp, Gimp, GNU Image Manipulation Program, gnu image manipulation program, Gimp tutorials, GIMP tutorials, gimp tutorials, Linux applications, linux applications, editing digital images, digital image editing, photo touchup, photo enhancement, enhancement photos, touchup, enhancement, image touchup, image enhancement, enhancement images, touchup images, digital collage, collage, compositing, photo montage, montage, photos, images, stock photos, copyright free photos, selection, selections, mask, masks, color correct, color correction, colorspace, colorspaces, RGB, rgb, hsv, HSV, free-hand tool, free hand tool, lasso tool, bezier path tool, Bezier path tool, layer mask, layer masks, layer, layers, gradient tool, gradients, blend tool, blending, threshold tool, thresholding, histogram, curves tool, curves, levels tool, levels, color picker, eyedropper, wilber, wilber the gimp, Wilber the GIMP, magic wand, fuzzy-select tool, fuzzy select tool, crop tool, transform tool, text tool,  [cell cut: 1485 characters, first 1000 kept]

Next: 2.8 Common Problems and Up: 2. Review of Layers Previous: 2.6 Manipulating Layers
Subsections

- 2.7.1 Merging
- 2.7.2 Flattening

#
2.7 Combining Layers

It is often necessary to combine several layers into one. This is particularly useful prior to saving an image to a non-GIMP format such as JPEG or GIF. There are two ways of combining layers in the GIMP. The method to use depends on the final use of the resulting image.

##
2.7.1 Merging

It is possible to merge a subset of layers from an image into a single layer. This is accomplished by choosing `Merge Visible Layers` from the Layers menu or by simply typing `C-m` in the image window. Alternatively, it is sometimes convenient to merge just two adjacent layers in the layer stack. This can be done with `Merge Down`, found in the Layers menu. The use of this function merges the active layer with the next visible layer down in the stack. `Merge Down` can be conveniently invoked by typing `C-S-m` in the Layers dialog. A nice use of `Merge Down` is illustrated in Section 9.1.4.

##
2.7.2 Flattening

The function `Flatten Image`, found in the Layers menu, is an alternative to `Merge Visible Layers`. This function merges all the layers regardless of their visibility in the image window. In addition, `Flatten Image` applies all the layer masks to their respective layers (for more on layer masks, see Section 4.2) and deletes any remaining alpha values in the image. In fact, `Flatten Image` is the only function in the GIMP that can remove the alpha channel from an image. Channel masks, however, are neither applied nor deleted (see Section 4.1 for more on channel masks). Typically an image is flattened in order to save it in an image format that does not support layers or transparency. The JPEG format is an example of this.

Next: 2.8 Common Problems and Up: 2. Review of Layers Previous: 2.6 Manipulating Layers
©2000 Gimp-Savvy.com