2. Lagerlägen

GIMP has thirty-eight layer modes, split up in seven groups: Normal, Lighten, Darken, Contrast, Inversion, HSV components, and LCh components. In addition to these layer modes, there are also the so-called legacy layer modes, which were used before GIMP 2.10. They are still available for backwards compatibility with saved images from older GIMP versions, but should normally not be used when creating new images.

Layer modes are also called blending modes. Selecting a layer mode changes the appearance of the layer or image, based on the layer or layers beneath it. Each layer in an image can have a different layer mode. The effects of these layer modes are cumulative. However, setting the mode to anything but Normal for the bottom layer of any layer group and the bottom layer of the image has no effect.

You can set the layer mode in the Mode drop-down menu at the top of the Layers Dialog. GIMP uses the layer mode to determine how to combine each pixel in the top layer with the pixel in the same location in the layer below it.

[Notera] Notera

When the active tool is a painting tool, there is a drop-down list in the Tool Options which contains modes that affect the painting tools in a similar way to the layer modes. You can use all of the same modes for painting that are available for layers, and there are additional modes just for the painting tools. See Avsnitt 3.1.3, ”Paint Mode Examples”.

Layer modes permit complex color changes in the image. They are often used with a new layer which acts as a kind of mask. For example, if you put a solid white layer over an image and set the layer mode of the new layer to HSV Saturation, the underlying visible layers will appear in shades of gray.

Figur 8.7. Images used for the layer mode examples

Images used for the layer mode examples

Background image (bottom layer)

Images used for the layer mode examples

Mask (top layer)

The examples below show the effects of each of the layer modes. Each example will also describe the effect of the layer mode.

Since the results of each mode vary greatly depending upon the colors on the layers, these images can only give you a general idea of how the modes work. You are encouraged to try them out yourself. You might start with two similar layers, where one is a copy of the other, but slightly modified (by being blurred, moved, rotated, scaled, color-inverted, etc.), and see what happens when you change the layer mode of the top layer.

2.1. Normal Layer Modes

The Normal group is a bit of a misnomer. Most of the modes besides Normal are cancellation modes.


Figur 8.8. Exempel för lagerläget Normal

Exempel för lagerläget ”Normal”

Top layer is at 50% Opacity.

Exempel för lagerläget ”Normal”

With 100% opacity for the top layer, only the upper layer is shown when blending with Normal, except for the transparent areas.

Normal mode is the default layer mode. The layer on top covers the layers below it. If you want to see anything below the top layer when you use this mode, the layer must have some transparent areas.

Lös upp

Figur 8.9. Exempel för lagerläget Lös upp

Exempel för lagerläget ”Lös upp”

Top layer is at 50% Opacity. The effect of Dissolve is visible everywhere, except in areas that are completely transparent.

Exempel för lagerläget ”Lös upp”

With 100% opacity of the top layer, only some edges that are semi transparent are affected by Dissolve.

Dissolve mode dissolves the upper layer into the layer beneath it by drawing a random pattern of pixels in areas of partial transparency. This is especially visible along the edges within an image. It can be useful as a layer mode, but it is also often used as a painting mode.


Figur 8.10. Exempel för lagerläget Färgsuddning

Exempel för lagerläget ”Färgsuddning”

Top layer at 100% opacity using Color Erase mode.

Color Erase mode erases the colors in the upper layer from the lower layer. Black pixels in the upper layer make those parts in the bottom layer transparent, while white pixels have no effect. Anything in between removes those specific colors from the bottom layer, leaving the other color components intact.


Figur 8.11. Exempel för lagerläget Sudda

Exempel för lagerläget ”Sudda”

Top layer at 100% opacity using Erase mode. The white parts here are transparent.

Erase mode erases any non transparent area of the upper layer from the lower layer, making those parts in the bottom layer transparent.


Figur 8.12. Exempel för lagerläget Sammanfoga

Exempel för lagerläget ”Sammanfoga”

Top layer at 100% opacity using Merge mode.

Merge mode lays the source layer on top of the destination, the same as normal mode. However, it assumes the source and destination are two parts of an original whole, and are therefore mutually exclusive. This is useful for blending cut and pasted content without artifacts, or for replacing erased content in general.


Figur 8.13. Exempel för lagerläget Dela

Exempel för lagerläget ”Dela”

Top layer at 100% opacity using Split mode. The white parts here are transparent.

Split mode subtracts the source layer from the destination, such that recompositing the result with the source using merge mode reproduces the original content.