Whole document tree ![]() ![]() ![]() ![]() ![]()
GUM v.1.0.017LayersIn this chapter we'll discuss the very foundation of effective image manipulation - Layers. What they are and how to use them.I ntroduction
Adding layers to your imageOpen the The dialogThere are two tabbed folders - one for Layers, where you are now, and one for Channels (Channels will be discussed in chapter 18). There is also a drop down menu for Modes, an Opacity slide bar, and a Keep Transparent button. There are also five short cut buttons at the bottom of the dialog. They are (counted from the left) New layer, Raise active layer, Lower active layer, Copy active layer, Delete active layer and Anchor floating selection, all of these options will be discussed later in this chapter. LayersIn the window, you will see a
thumbnail icon of your image. There is an eye symbol to the left of it, and you can see that your image is called Background. Try clicking at the eye, and you'll find that your image disappears! Click again and it comes back. The eye symbol allows you to toggle on/off layers, so you can work with a particular layer without having to see all other layers. If you Layer operationsNew layer
The active layerNow, when you have two ore more layers, it's really important to know which one is the active layer. The active layer is marked with blue color in the dialog box, and you can make another layer active by clicking its name beside the thumbnail. As soon as you have several layers in an image, Gimp reacts only to the active layer, so you can only work in one layer at a time If a layer is smaller than the background, you can also make it active by clicking in it with the Move tool. If you want to move a transparent layer, or just make sure that you move the right layer, press the Symbols and explanations
Only remember to unlink the layers before moving another layer, otherwise you'll move all of the layers even if the linked layers aren't active. To understand the Keep transparent button, you first have to draw something in a transparent layer. Make the layer active, and paint something with the paintbrush (with the button unchecked, which is default). Now, press the button, change the color of your paint, and start painting again. You'll find that you can only paint the opaque areas - i.e. the ones you already painted. The purpose of Keep Transparent is to protect the boundaries of opaque shapes in a transparent layer. It also makes it very easy to change their color, you never have to worry about painting outside of edges etc. If you want to use a filter on a layer, you usually don't want this option checked, because then you'll only get the filter effect inside of the shape. Naming
Remember that your original image was automatically named Background? The background layer doesn't react quite as the other layers, because it isn't really regarded as a layer - it's a fix and solid area for layers to work against. The background works the same way as it did when you didn't have layers. When you cut parts of it, or use the eraser, the background color shows - not a transparent surface. You also can't use layer masks on it or raise it. Normally, you have no need to do these things on a background, but if you want to anyway (for transparent GIF:s for example); Raise Layer and Lower LayerThese commands move the active layer to a higher or lower position in the layer hierarchy. You can only raise or lower a layer one step at a time, so if you want to move a layer near the background to the top, you have to keep raising it step by step, until you are satisfied with the position. The background layer can't be raised, unless you rename it or use Add Alpha Channel. Duplicate LayerMakes a copy of the active layer, and places it immediately above the original. Delete LayerDeletes the active layer. Scale LayerShrinks or enlarges the layer and its contents Resize LayerChanges the size of the layer, but not its contents. If the contents of the layer is larger than the new layer size, the image or selection will be clipped to fit the new size. There is also an offset option, where you can decide how the layer content is to be placed inside the new layer. Add Layer MaskDescription
How to
With gradientsA very useful mask can be made from a gradient fill. A gradient results in the top layer gradually blending with the background. You can paint degrees of transparency where you want it, or use filter or a pattern to create an interesting mask. You can use selections, or paste an image into the mask. In short, this is an extremely versatile and powerful instrument. Green and Red Mask displayTo work with the mask, the little thumbnail is quite insufficient! Use ALT-click on the mask icon, and you'll see the grayscale mask instead of your image. Note that the mask icon is now lined with green. When you want to check the result of the mask, ALT-click again, and you'll see what your image looks like with the mask effect. To see your image without the mask CTRL-click on the icon; The thumbnail is now lined with red. CTRL-click again to return to the mask. You can also alternate between green and red display by Apply Layer Mask
Anchor layerAnchor layer is used for merging floating selections with a layer (the layer which was active before you placed the float.). If you don't know what a floating selection is, check out chapter 18. Most of the time it's quite sufficient to mouse-click in the float to make it stick to a layer. Sometimes the Move tool has to be active for this to work (this is the case for anchoring floating Text strings), but the Anchor layer command always works, and it's fast to use, if you remember the short cut key for it ( Merge Visible Layers
Flatten ImageMerges all layers without exception. Remember that you must use Flatten Image before saving your image, if you mean to save it in any other image format than XCF and GIF. (Also, remember to erase your Alpha Channels, if you have made any in the Channels folder - many image formats and printers don't understand Alpha Channels). Alpha to SelectionAlpha to Selection is a very powerful command. Alpha to Selection is used when you want to transform opaque or semi-transparent shapes in a transparent layer to a selection. This command is so useful, that you use it nearly every time you work with a layered image. Think of it, the form, or shape of things is what you mostly work with in the different layers. If you work with an image of, say, a saucer, you'll want to place a copy of the saucer shape under the actual saucer to create a saucer-shaped shadow. Then, you want another saucer copy to accentuate highlights in the porcelain, and another to show dark areas, and another with a special pattern on it, and another...etc. Get the hint? Every time, you just want the empty shape or the selection of the saucer, not a copy of an image with a saucer in it. This is why Alpha to Selection is so important. The pure shape of an object in the form of a selection goes through all layers, you just activate the layer you want it in, and start working! Mask to SelectionMask to Selection is the equivalent of Alpha to Selection, but for masks. You usually don't use this option as often as Alpha to Selection, but if you've made a good mask it is great to be able to use it again in another layer. Add Alpha ChannelIf you wish to add alpha information (be able to work with transparency) to the background layer, you can use this option. There are other ways to accomplish this, but Add Alpha Channel is fast and easy. Align Visible Layers
Horizontal styleHorizontal style controls how layers are positioned (horizontally) in relation to each other.
Horizontal baseHorizontal base controls what edge the layers snap to or fill from Vertical style
Vertical baseVertical base controls what edge the layers snap to or fill from CollectCollect is good for stacking objects in horizontal or vertical rows. If you want to place your layers exactly on top of each other, this is the option to use (choose Collect/Centre for both Vertical and Horizontal style/base) Fill
Snap to grid
Misc.Ignore the bottom layer even if visible is set as default. This is wise in most cases. When you have created layers with a fix background, you don't want the background to start moving. Use the (invisible) bottom layer as the base treats the bottom layer as any other layer, it aligns the background or bottom layer together with the other layers. Use this option if you want to make a GIF-animation with transparent background. Grid size: Here you can set the size of the invisible grid. The grid squares measure up to 200 pixels. Import layersWith this tool can you import one or more layers from a another image. The source image can be bigger or smaller than the target image. The interface is simple and easy to use. There is a menu where you select an image to import layers from, and several options for selecting what layer(s) you want to import. You can make importing easier by bringing up the Layers & Channels dialog. As you can see in the interface, you can import the layers in the way they appear in the source image, or in reverse order. You can also choose what layers you want to import; linked (the little anchor), visible, selected or all layers. To import a layer, press OK or Apply. Pressing Apply will keep the dialog open after importing, so you can go on importing layers from other images. Adjust layersWhen you add a small layer to an image, you may want to adjust that layer in relation to another layer or the image border. This tool will help you do this in several ways. You must first choose what layer(s) or image border you want Adjust to be relative to. The second choice is to specify the layer(s) you want to adjust. You specify these adjustments with four check buttons. As you see in the table below, there are sixteen different combinations:
You can also select a layer in the drop down menu. It's wise to have the Layers & Channels dialog up, so you can set the layers that should be linked, visible or active. All these functions makes it easy to adjust several layers against the image border or another layer. You can for example use a combination where you adjust all linked layers against all visible layers. Move layerHere's a possibility to move one or several layers in a more exact way than you can achieve by hand. In the drop down menu you select a layer to move. The slides set distance and direction of the movement. If you want to move more than one layer you have to check Affect visible layers or Affect linked layers or both. If you don't check any of these buttons, only the layer selected in the drop down menu will be affected. You must also choose how to move the layer(s); relative or absolute. With Relative, you will move the layer(s) with the selected layer's current position as reference. With Absolute mode, you will move the layer(s) with the image border as reference. Generated by fmtoweb (v. 2.9c) written by Peter G. Martin <peterm@zeta.org.au> Last modified: 19 May 1998
|