6.27. Align Visible Layers…

With the Align Visible Layers command, you can very precisely position the visible layers (those marked with the eye icon). This degree of precision is especially useful when you are working on animations, which typically have many small layers. Clicking on Align Visible Layers displays a dialog which allows you to choose how the layers should be aligned.

Fig. 16.73. Example image for layer alignment

Example image for layer alignment

The example image contains four layers on a (150×150 pixel) canvas. The red square is 10×10 pixels, the green rectangle is 10×20 pixels and the yellow rectangle is 20×10 pixels. The background layer (blue, 100×100 pixels) will not be affected by the command, since the Ignore lower layer option has been checked on the dialog. Note the order of the layers in the Layers Dialog.


6.27.1. Activating the Command

  • You can access this command from the main menu through ImageAlign Visible Layers…. There is no default keyboard shortcut. If the image holds a single layer only, you get a message from GIMP telling that there must be more than one layer in the image to execute the command.

6.27.2. Description of the Align Visible Layers dialog

Fig. 16.74. The Align Visible Layers dialog

The „Align Visible Layers” dialog

Horizontal style, Vertical style

These options control how the layers should be moved in relationship to each other. You can choose:

  • None: There will be no change in the horizontal or the vertical position, respectively.

  • Collect: The visible layers will be aligned on the canvas, in the way that is determined by the Horizontal base and Vertical base options. If you select a Horizontal base of Right edge, layers may disappear from the canvas. You can recover them by enlarging the canvas. If you check the Use the (invisible) bottom layer as the base option, the layers will be aligned on the top left corner of the bottom layer.

    Fig. 16.75. Horizontal Collect alignment (on the edge of the canvas)

    Horizontal „Collect” alignment (on the edge of the canvas)

    Original image with the layer stack

    Horizontal „Collect” alignment (on the edge of the canvas)

    The layers have been moved horizontally so that their left edges are aligned with the left edge of the canvas.


    Fig. 16.76. Horizontal Collect alignment (on the bottom layer)

    Horizontal „Collect” alignment (on the bottom layer)

    Original image with the layer stack

    Horizontal „Collect” alignment (on the bottom layer)

    The layers have been moved horizontally so that their left edges align with the left edge of the bottom layer.


  • Fill (left to right); Fill (top to bottom): The visible layers will be aligned with the canvas according to the edge you selected with Horizontal base or Vertical base, respectively. The layers are arranged regularly, so that they do not overlap each other. The top layer in the stack is placed on the leftmost (or uppermost) position in the image. The bottom layer in the stack is placed on the rightmost (or bottommost) position of the image. The other layers are placed regularly between these two positions. If the Use the (invisible) bottom layer as the base option is checked, the layers are aligned with the corresponding edge of the bottom layer.

    Fig. 16.77. Horizontal Fill alignment (canvas)

    Horizontal „Fill” alignment (canvas)

    Original image with the layer stack

    Horizontal „Fill” alignment (canvas)

    Horizontal filling alignment, Left to Right, with Use the (invisible) bottom layer as the base option not checked. The top layer in the stack, the green one, is placed all the way on the left. The bottom layer in the stack, the red one, is placed is on the right and the yellow layer is between the other two.


    Fig. 16.78. Horizontal Fill alignment (bottom layer)

    Horizontal „Fill” alignment (bottom layer)

    Original image with the layer stack

    Horizontal „Fill” alignment (bottom layer)

    The same parameters as in the previous example, but with the lowest (blue) level as the base.


  • Fill (right to left); Fill (bottom to top): These settings work similarly to the ones described above, but the filling occurs in the opposite direction.

    Fig. 16.79. Vertical Fill alignment (bottom layer)

    Vertical „Fill” alignment (bottom layer)

    Original image with the layer stack

    Vertical „Fill” alignment (bottom layer)

    Vertical Fill alignment, bottom to top, bottom layer as base


    There must be at least three visible layers in the image to use the Fill options.

  • Snap to grid: The visible layers will be aligned with the grid.