The Align and Distribute 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.
There are different possibilities to activate the tool:
From the main menu:
→ → .
By clicking the tool icon
in the Toolbox.
By pressing the Q keyboard shortcut.
Nuspaudę klavišą Shift ir spustelėdami pageidaujamus sluoksnius, galite pasirinkti kelis sluoksnius.
![]() |
Patarimas |
---|---|
Kartais yra lengviau pasirinkti keletą sluoksnių naudojant „guminį diapazoną“: spustelėkite kur nors už įsivaizduojamos stačiakampės srities, dengiančios pageidaujamus pažymėti sluoksnius. Tada nuvilkite tą sritį perkeldami žymiklį ir atleiskite pelės mygtuką: dabar pažymėtas kiekvienas sluoksnis, visiškai esantis nuvilktame stačiakampyje. Atkreipkite dėmesį, kad dabar nebėra „pirmo elemento“, prie kurio būtų galima lygiuoti pasirinktus sluoksnius. |
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 main menu 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 Layers 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.
: to
align center of source on the
vertical middle line of target.
: to
align right edge of source with right edge of target.
: to
align top edge of source with top edge of target.
: to
align center of source on the
horizontal middle line of target.
: to
align bottom edge of source with bottom edge of target.
An image with a selection, layer #1 (background) is active, layer #2 is cropped to content, layer #3 is a text layer.
We click on the yellow circle: layer #2 becomes the source. We want to send this source to the middle of the selection: the Relative to option is set to „Selection“.
clicked
clicked
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 distribute sources evenly.
: to distribute sources evenly
horizontally.
: to distribute centers of sources
with center of the target horizontally.
: to distribute sources evenly
vertically.
: to distribute centers of sources
with center of target.
Pav. 14.94. Example for the „Distribute“ commands
Base image: three layers.
(Distribute right edges of targets) will be used.
Pav. 14.95. Origin
We select them as sources with Shift + Click.
The default target (Relative to) is
„Image“. We used the
(Distribute vertical centers of targets) command.
After using the
(Distribute targets
evenly in the horizontal).
Pav. 14.96. Lygiuoti naudojant rubber-band langelį
Spustelėjome kairiau ir virš raudono sluoksnio ir vilkdami žymiklį į apatinį viršutinį kampą apibrėžėme sritį, apimančią raudoną ir geltoną sluoksnius.
„Selection“ is the reference. After a click
on the
button, both layers align with the left side of the
selection.