8장. 이미지 합치기

차례

1. 레이어 소개
1.1. 레이어의 속성
2. 레이어 모드
2.1. Normal Layer Modes
2.2. Lighten Layer Modes
2.3. Darken Layer Modes
2.4. Contrast Layer Modes
2.5. Inversion Layer Modes
2.6. HSV Components Layer Modes
2.7. LCh Components Layer Modes
3. Legacy Layer Modes
4. 새 레이어 만들기
5. 레이어 그룹
6. Layer Effects
6.1. 소개
6.2. Terminology
6.3. Adding a Layer Effect to a Layer
6.4. Order Matters
6.5. The Layer Effects Dialog
6.6. Merging
6.7. Merging and Auxiliary Other Images
6.8. Undo and Layer Effects
6.9. Copying Layer Effects
6.10. Persistence of Layer Effects
7. Layer Types
7.1. 소개
7.2. Text Layer
7.3. Vector Layer
7.4. Link Layer

1. 레이어 소개

You can think of layers as a stack of slides. Using layers, you can construct an image of several conceptual parts, each of which can be manipulated without affecting any other part of the image. Layers are stacked on top of each other. The bottom layer is the background of the image, and the components in the foreground of the image come above it.

그림 8.1. An image with layers

An image with layers

Layers of the image

An image with layers

Resulting image


There is no limit to the number of layers an image can have, only the amount of memory available on the system. It is not uncommon for advanced users to work with images containing dozens of layers. You can group layers to make your work easier, and there are many commands to handle layers.

The organization of layers in an image is shown in the Layers dialog. How it works is described in detail in the Layers Dialog section, but we will touch some aspects of it here, in relation to the layer properties that they display.

Each open image can have one or more active drawables. A drawable is a GIMP concept that includes layers, but also several other items, such as channels, layer masks, and the selection mask.

Basically, a drawable is anything that can be drawn on with painting tools. If a layer is currently active (i.e. it is selected), it is shown highlighted in the Layers dialog. If only one layer is selected, its name is shown in the status area of the image window.

To activate a layer click it. To select multiple layers, use the common key modifiers Shift for selecting a range, and Ctrl for adding or removing one layer from the selection. If none of the layers are highlighted, it means the active drawable is something else than a layer.

The main menu has a Layer submenu containing commands that affect the active layer or layers of the image. The context menu of the Layers Dialog has even more commands. This menu can be accessed by right-clicking on a layer.

There are several types of layers. The most common is the raster layer, which is the default. Other layer types are text layers, vector layers and link layers. Each of these have extra properties and commands specific to their purpose.

1.1. 레이어의 속성

이미지의 각 레이어들은 다음과 같은 주요 속성을 갖습니다. :

이름

Every layer has a name. This is assigned automatically when the layer is created, but you can change it. You can change the name of a layer either by double-clicking on it in the Layers dialog, or by right-clicking there, and then selecting the top entry in the menu that appears, Edit Layer Attributes.

알파 채널의 존재 유무

An alpha channel encodes information about how transparent a layer is at each pixel. It is visible in the Channels dialog: white is complete opacity, black is complete transparency and gray levels are partial transparencies.

The background layer is special. If you have just created a new image, it only has one layer, which is the background layer. If the image has been created with an opaque Fill type, this one layer has no Alpha channel. To get a background layer with transparency, either create your new image with a transparent Fill type, or you use the Add an Alpha Channel command.

If you add a new layer, even with an opaque Fill type, an Alpha channel is automatically added to the layer.

Every layer other than the bottom layer of an image automatically has an Alpha channel, but you can't see a grayscale representation of the alpha values. See Alpha in Glossary for more information.

알파 채널의 예제. 

그림 8.2. 알파 채널 예제: 기본 이미지

알파 채널 예제: 기본 이미지

Original image.

알파 채널 예제: 기본 이미지

The image has three layers painted with pure 100% opaque Red, Green, and Blue. The current layer is the red one.

알파 채널 예제: 기본 이미지

In the Channels dialog, the added Alpha channel is white because the image is not transparent since there is a 100% opaque (red) layer. As the current (red) layer is 100% opaque, there is no green and no blue so their corresponding channels are black.


그림 8.3. 알파 채널 예제 : 한 개의 투명한 레이어가 있는 경우

알파 채널 예제 : 한 개의 투명한 레이어가 있는 경우

The left part of the first layer has been made transparent (via 2.2절. “사각 선택 도구”, then EditClear).

알파 채널 예제 : 한 개의 투명한 레이어가 있는 경우

The second layer, green, is visible.

알파 채널 예제 : 한 개의 투명한 레이어가 있는 경우

The Alpha channel is still white, since there is an opaque layer in this part of the image.


그림 8.4. 알파 채널 예제: 두 개의 투명한 레이어가 있는 경우

알파 채널 예제: 두 개의 투명한 레이어가 있는 경우

The left part of the second layer has been made transparent.

알파 채널 예제: 두 개의 투명한 레이어가 있는 경우

The third layer, blue, is visible through the first and second layers.

알파 채널 예제: 두 개의 투명한 레이어가 있는 경우

The Alpha channel is still white, since there is an opaque layer in this part of the image.


그림 8.5. 알파 채널 예제 : 세 개의 투명한 레이어가 있는 경우

알파 채널 예제 : 세 개의 투명한 레이어가 있는 경우

The left part of the third layer has been cleared. In this case, the Clear command works like the Eraser and uses the Background color of Toolbox.

알파 채널 예제 : 세 개의 투명한 레이어가 있는 경우

The left part of the third layer is opaque, because the background layer has no Alpha channel.

알파 채널 예제 : 세 개의 투명한 레이어가 있는 경우

The Alpha channel is still white.


그림 8.6. 알파 채널 예제 : 배경레이어에 알파 채널을 추가한 경우

알파 채널 예제 : 배경레이어에 알파 채널을 추가한 경우

We used the LayerTransparencyAdd Alpha Channel command on the (blue) background layer. The left part of the image has become fully transparent and has the color of the page on which the image is shown.

알파 채널 예제 : 배경레이어에 알파 채널을 추가한 경우

The left part of the blue layer has become transparent.

알파 채널 예제 : 배경레이어에 알파 채널을 추가한 경우

The left part of the Alpha Channel thumbnail is black (transparent) in the Channels dialog.


Layer mode

The layer mode is determined by the image mode (see previous section), and the presence or absence of an alpha channel. GIMP currently supports RGB, RGBA, Gray, GrayA, Indexed, and IndexedA.

The main reason this matters is that some filters (in the Filters menu) only accept a subset of layer modes, and appear disabled in the menu if the active layer does not have a supported mode. Often you can rectify this either by changing the mode of the image, or by adding or removing an alpha channel.

Visibility

You can hide a layer from affecting the end result of your image by clicking on the eye symbol in the Layers dialog. This is called toggling the visibility of the layer. Most operations on an image treat toggled-off layers as if they do not exist.

When you work with images containing many layers, with varying opacities, you often can get a better picture of the contents of the layer you want to work on by hiding some of the other layers.

[작은 정보] 작은 정보

Shift 버튼을 누른채 눈 모양을 클릭하면, 방금 클릭한 레이어를 제외한 모든 레이어를 숨깁니다.

Active layer

Usually, you activate a layer, to work on it, clicking it in the layer list. When you have a lot of layers, finding which layer an element of the image belongs to is not easy: then, press Alt and click with Mouse wheel on this element to activate its layer. The available layers will be looped through (starting from the upper one) while the Alt is held and the picked layer will be temporarily displayed in the status bar.

Layer Lock Settings

If you click to the right of the eye icon, you can select the lock settings for the layer.

Layer Effects

Directly to the left of the image thumbnail, you will see the Layer Effects icon if that layer has effects added to it.

See Using Layer Effects for more details.

크기와 경계

In GIMP, the boundaries of a layer do not necessarily match the boundaries of the image that contains it. When you create text, for example, each text item belongs to its own separate layer, and the layer size is automatically adjusted to contain the text and nothing more.

Also, when you create a new layer using cut-and-paste, the new layer is sized just large enough to contain the pasted item. In the image window, the boundaries of the currently active layer are shown outlined with a black-and-yellow dashed line. When more than one layer is selected, it will show an outline of the square that encloses all the selected layers.

The main reason why this matters is that you cannot do anything to a layer outside of its boundaries, unless you enabled Expand Layers in the Paint Tool Options. If this causes you problems, you can alter the dimensions of the layer using any of several commands that you can find near the bottom of the Layer menu.

[참고] 참고

레이어가 차지하는 메모리의 총량은 레이어의 내용이 아닌 넓이에 의해 좌우됩니다. 따라서 큰 이미지나 많은 레이어를 가진 이미지로 작업을 한다면 레이어의 크기를 적절하게 조절할 필요가 있습니다.

불투명도

레이어의 불투명도는 바로 밑에 위치한 레이어의 색상을 얼마만큼 투과시킬 것인가에 대한 것입니다. 불투명도의 범위는 0부터 100으로, 0은 완전 투명, 100은 완전 불투명입니다.

모드

레이어의 모드는 레이어의 색상을 하위 레이어의 색상과 어떠한 방식으로 혼합시킬 것인가에 대한 것입니다. 이것은 상당히 복잡하나 그만큼 중요하므로 2절. “레이어 모드” 에 따로 설명이 되어 있습니다.

레이어 마스크

레이어에는 알파 채널외에 투명도를 조절할 수 있는 방법이 하나 더 있습니다. 그것은 레이어 마스크를 추가하는 것으로 레이어 마스크는 레이어와 연동된 추가적인 그레이스케일 drawable 영역입니다. 기본적으로는 레이어에 없으며, 따로 추가를 해주어야 합니다. 레이어 마스크의 동작에 대한 자세한 설명은 레이어 마스크에 있습니다.