4.2. Align and Distribute

Figura 14.119. The Align and Distribute tool in toolbox

The Align and Distribute tool in toolbox

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.

4.2.1. Activar la herramienta

Existen diferentes posibilidades para activar la herramienta:

  • From the image-menu: ToolsTransform ToolsAlign and Distribute.

  • By clicking the tool icon in the Toolbox.

  • By pressing the Q keyboard shortcut.

4.2.2. Teclas modificadoras (predeterminadas)

Mayús

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.120. Tool Options for the Align and Distribute tool

Tool Options for the Align and Distribute tool

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:

En esta lista desplegable, seleccione el objetivo, el objeto de la imagen sobre el que se alineará la capa seleccionada.

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

  • Imagen: la imagen es el objetivo.

  • Selección: la selección es el objetivo.

  • Capa activa: la capa activa, en el diálogo de capa, es el objetivo.

  • Canal activo: el canal activo, que contiene una selección que ha realizado antes, es el objetivo.

  • Ruta activa: la ruta activa es el objetivo.

Alienar botones

Estos botones se activan cuando se selecciona un objetivo.

  • Alinear el borde izquierdo del objetivo: para alinear el borde izquierdo del origen con el borde izquierdo del objetivo.

  • Alinear el centro del objetivo: para alinear el centro del origen en la línea media vertical del objetivo.

  • Align right edge of target: to align right edge of source with right edge of target.

  • Align top edge of target: to align top edge of source with top edge of target.

  • Align middle of target: to align center of source on the horizontal middle line of target.

  • Align bottom edge of target: to align bottom edge of source with bottom edge of target.

Ejemplo

Una imagen con una selección, la capa n.° 1 (fondo) está activa, la capa n.° 2 se recorta al contenido, la capa n.° 3 es una capa de texto.

Pulsamos en el círculo amarillo: la capa n.° 2 se convierte en el origen. Queremos enviar este origen al medio de la selección: la opción Relativa a está establecida en Selección.

Alinear el centro del objetivo pulsado

Alinear el medio del objetivo pulsado

Distribuir
Distribuir botones

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.

  • Distribute left edges of targets: to distribute left edges of sources on the left edge of the target (the image).

  • Distribute horizontal centers of targets: to distribute centers of sources with center of the target horizontally.

  • Distribute right edges of targets: to distribute right edges of sources on right edge of the target.

  • Distribute targets evenly in the horizontal: to distribute sources evenly horizontally.

  • Distribute left edges of targets: to distribute top edges of sources on top edge of target.

  • Distribute vertical centers of targets: to distribute centers of sources with center of target.

  • Distribute bottom edges of targets: to distribute bottom edges of sources with bottom edge of target.

  • Distribute targets evenly in the vertical: to distribute sources evenly vertically.

Desplazamiento

Este desplazamiento puede ser positivo o negativo y se expresa en píxeles. Distribuir, añade este desplazamiento al borde izquierdo, centrado horizontal, borde derecho, borde superior, centrado vertical, o borde inferior de los orígenes.

Figura 14.121. Ejemplo de los comandos Distribuir

Ejemplo de los comandos “Distribuir”

Imagen base: tres capas. Se usará Ejemplo de los comandos “Distribuir”(Distribuir los bordes derechos de los objetivos).

Ejemplo de los comandos “Distribuir”
Active layer is yellow (target). Offset = 0: all layers are aligned on the right edge of the yellow layer.
Ejemplo de los comandos “Distribuir”
La capa activa es amarilla. Desplazamiento = 10:

Coordinates

GIMP shows relative coordinates (horizontal or vertical) when moving guides and sample points. Coordinates are relative to the start of moving.

4.2.4. Un ejemplo práctico para Distribuir

Figura 14.122. Origen

Origen
Cuatro capas de texto, con el mismo tamaño. Queremos alinearlas en el centro de la imagen.


      

Origen

Los seleccionamos como orignenes con Mayús + Pulsar.

Origen

El objetivo predeterminado (Relativo a) es Imagen. Desplazamiento = 0. Usamos el comando Origen(Distribuir los centros verticales de los objetivos).

Origen

Después de usar el Origen(Distribuir objetivos uniformemente en horizontal) con desplazamiento = 5.


4.2.5. Alineación usando la selección elástica

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

Selección es la referencia. Después una pulsación sobre el botón Alineación usando la selección elástica, se alinean ambas capas en el lado izquierdo de la selección.