4.2. Alineación

Figura 14.117. The Align tool in toolbox

The Align tool in toolbox

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 target. Various buttons in the dialog allow you to select how the layer will be moved. And you can select the image object (other layer, selection, path...) the selected layer will be aligned with.

4.2.1. Activar la herramienta

Puede activar la herramienta de alineación de varias maneras :

  • from the image-menu, through: ToolsTransform ToolsAlign,

  • pulsando sobre el icono de la herramienta: en la caja de herramientas,

  • usando el atajo de teclado Q.

4.2.2. Teclas modificadoras (predeterminadas)

Desplazar

Puede seleccionar varias capas manteniendo pulsada Mayús cuando pulsa sobre las capas.

[Sugerencia] Sugerencia

A veces, es más fácil elegir múltiples capas usando la selección elástica: pulse fuera de una región rectangular imaginaria que cubra las capas que se quieren elegir. Después, arrastre fuera de esa región moviendo el ratón y suelte el botón. Ahora cada capa, que está completamente dentro de el rectángulo arrastrado, está seleccionada.

Tenga en cuenta que ahora no hay primer elemento objetivo sobre el que puedan alinearse las capas seleccionadas.

4.2.3. Opciones de herramienta

Figura 14.118. Opciones de herramienta para la herramienta de alineación

Opciones de herramienta para la herramienta de alineación

Normalmente, las opciones de herramienta se muestran en una ventana unida por debajo a la caja de herramientas, tan pronto como se activa una herramienta. Si no están, se puede acceder a ellas desde la barra del menú de la imagen a través de VentanasDiálogos empotrablesOpciones de herramienta que abre la ventana de las opciones de la herramienta seleccionada.

Alineación
Relativo a:

To reference the image object the layer will be aligned with.

  • Primer elemento: el primer elemento seleccionado al seleccionar capas múltiples manteniendo pulsada la tecla Mayús. Tenga en cuenta que no hay primer elemento cuando selecciona varias capas usando la selección elástica.

  • Image: the image is used as alignment reference.

  • Selection: the selection is used as alignment reference.

  • Active layer: the active layer, in the layer dialog, is used as alignment reference.

  • Active Channel: the active channel is used as alignment reference.

  • Active Path: the active path is used as alignment reference.

Figura 14.119. Alignment References Examples

Alignment References Examples

An image with a selection, a text layer and an active layer. This layer is cropped to content.

Alignment References Examples

Image is the alignment reference. The Alignment References Examples (Align right edge of target) command has been used.


Figura 14.120.

Selection is the alignment reference

Active layer is the alignment reference

Path is the alignment reference


Align buttons

These buttons become active when a target is selected.

  • : to align left edge of target with left edge of reference.

  • : to align center of target with center of reference horizontally.

  • : to align right edge of target with right edge of reference.

  • : to align top edge of target with top edge of reference.

  • : to align center of target with center of reference vertically.

  • : to align bottom edge of target with bottom edge of reference.

Distribuir
Distribute buttons

These options are used when you have several targets and want to arrange them. targets are the layers selected with Shift + Click.

Note that Relative to options are active when using Distribute.

  • : to distribute left edges of targets with left edge of reference.

  • : to distribute centers of targets with center of reference horizontally.

  • : to distribute right edges of targets with right edge of reference.

  • : to distribute top edges of targets with top edge of reference.

  • : to distribute centers of targets with center of reference vertically.

  • : to distribute bottom edges of targets with bottom edge of reference.

  • : to distribute targets evenly in the horizontal.

  • : to distribute targets evenly in the vertical.

    Last both buttons ones are new in GIMP-2.10.

Desplazamiento

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 targets.

Figura 14.121. Example for the Distribute commands

Example for the Distribute commands

Base image: three layers. Example for the Distribute commands (Distribute right edges of targets) will be used.

Example for the Distribute commands
Active layer is yellow (reference). Offset = 0: all layers are aligned on the the right edge of the yellow layer.
Example for the Distribute commands
Active layer is yellow. Offset = 10:

4.2.4. A practical example

Figura 14.122. Origin

Origin
Four text layers, with same size. We want to align them at center of image.


      

Origin

We select them as targets with Shift + Click.

Origin

Alignment reference (Relative to) is Image. Offset = 0. We used the Origin (Distribute vertical centers of targets) command.

Origin

After using the Origin(Distribute targets evenly in the horizontal) with offset = 5.


4.2.5. Align using the rubber-band box

Figura 14.123. Alineación usando la selección elástica

Alineación usando la selección elástica

Se pulsa desde la izquierda y arriba de la capa roja, y se arrastra una región cubriendo las capas roja y amarilla, moviendo el puntero hacia la esquina inferior derecha.

Alineación usando la selección elástica

Selection is the reference. After a click on the Alineación usando la selección elástica button, both layers align with the left side of the selection.