4.6. Škála

4.6.1. Overview

The Scale Tool can be used to scale a layer, selection, path or image, depending on the Transform setting.

When you click on your image with the Scale tool, the Scale dialog is opened, allowing to change the Width and Height. When the chain icon is closed, adjustments to one, will adjust the other value the same percentage. If you do not want this, click the chain icon to disable the synchronization. The default size is in pixels, which can be changed in the measurement drop-down list besides the chain icon.

At the same time a Preview (unless disabled in the Tool Options) is superimposed on the object and handles appear on the corners and borders that you can click and drag to change the dimensions. At the center, a square with a cross inside can be used to move the preview.

4.6.2. Activating the Tool

There are different possibilities to activate the tool:

  • From the main menu: ToolsTransform ToolsScale.

  • By clicking the tool icon in the Toolbox.

  • By pressing the Shift+S keyboard shortcut.

4.6.3. Key modifiers (Defaults)

Shift

Holding the Shift key down will toggle the Keep aspect option.

Ctrl

Holding the Ctrl key down will toggle the Around center option.

4.6.4. Tool Options

Obrázek 14.105. Tool options for the Scale tool

Tool options for the Scale tool

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 WindowsDockable WindowsTool Options which opens the option window of the selected tool.

Transform; Interpolation; Direction; Clipping; Show image preview; Guides
[Poznámka] Poznámka

These options are described in Transform tools common options.

[Poznámka] Poznámka

The Transform mode works on the active layer only. To work on all layers of the image, use Scale Image.

To scale a path, please refer to Transforming path.

Keep aspect (Shift)

When you move a corner of the selection frame, this option will constrain the scale such as the Height/Width ratio of the layer will remain constant. Note that this doesn't work with border handles. Note also that it toggles the linking chain in the dialog.

Around center (Ctrl)

When this option is enabled, you can scale from center, radially if Keep aspect is checked, else vertically or horizontally.

4.6.5. The Scale adjustment dialog

Obrázek 14.106. The Scale adjustment dialog

The Scale adjustment dialog

Šířka/Výška

Here, you can set Width and Height you want to give to the object. The default unit of measurement is pixel. You can change it by using the drop-down list. These values are also automatically changed when you drag handles in the image. If the associated linking chain is broken, you can change Width and Height separately.

Readjust button

With this button, available since GIMP 2.10.10, you can reset the transform handles back to the original square shape, while keeping the current transformation and zoom level. This enables you to create more complex transformations by making the transformation in several steps.