The Align tool is useful to align the image layers with various image objects. When this tool is selected, the mouse pointer turns to a small hand. By clicking on an element of a layer in the image, you choose the layer which will be moved (with Shift + click, you can choose several layers to be aligned); this focused layer has small squares in corners and is called source. Then buttons in the dialog become active (they remain active during all the GIMP session): they allow you to select the target, i.e other layer, selection, path, the source will be aligned with.
You can activate the Align tool in several ways :
from the image-menu, through:
→ → ,by clicking on the tool icon: in the toolbox,
by using the Q keyboard shortcut.
You can select several layers by holding Shift when clicking the layers.
Dica | |
---|---|
Sometimes it's easier to choose multiple layers using rubber-banding: click somewhere outside an imaginary rectangular region covering the layers you want to choose. Then drag out that region by moving the pointer, and release the mouse button. Now every layer, which is completely inside the dragged rectangle, is selected. Note that now there is no target “first item” the selected layers can be aligned on. |
Normally, tool options are displayed in a window attached under the Toolbox as soon as you activate a tool. If they are not, you can access them from the image menu bar through
→ → which opens the option window of the selected tool.In this drop down list, you select the target, the image object the layer will be aligned with.
First item: the first selected item when selecting multiple layers holding the Shift key. Note that there is no “first item” when you select multiple layers using rubber-banding.
Image: the image is the target.
Selection: the selection is the target.
Active layer: the active layer, in the layer dialog, is the target.
Active Channel: the active channel, containing a selection you made before, is the target.
Active Path: the active path is the target.
These buttons become active when a target is selected.
: to align left edge of source with left edge of target.
vertical middle line of target.
: to align center of source on the: to align right edge of source with right edge of target.
: to align top edge of source with top edge of target.
horizontal middle line of target.
: to align center of source on the: to align bottom edge of source with bottom edge of target.
These options are used when you have several targets and want to arrange them. Here, layers selected with Shift + Click are called “targets” . But they are actually sources. “Relative to” options are active to set the target. These transformations are usually relative to “Image”.
These options work as Align options, but you can add an offset and new options are available to distribute sources evenly.
: to distribute left edges of sources on the left edge of the target (the image).
: to distribute centers of sources with center of the target horizontally.
: to distribute right edges of sources on right edge of the target.
: to distribute sources evenly horizontally.
: to distribute top edges of sources on top edge of target.
: to distribute centers of sources with center of target.
: to distribute bottom edges of sources with bottom edge of target.
: to distribute sources evenly vertically.
This offset can be positive or negative and is expressed in pixels. Distribute add it to the left edges, horizontal centers, right edges, top edges, vertical centers, or bottoms of sources.
GIMP-2.10 shows relative coordinates (horizontal or vertical) when moving guides and sample points. Coordinates are relative to the start of moving.