7.53. Taille des bords du calque

In GIMP, each layer has its own size that can be changed independently of the size of the image. This command changes the dimensions of a layer, but it does not scale its contents.

[Note] Note

By default, painting outside the borders of a layer is ignored. You can, however, enable the Expand Layers setting in the Paint Tool Options, which will automatically extend the size of the layer when painting near one of its borders up to the size of the canvas.

7.53.1. Accès à la commande

You can access this command

  • From the main menu through LayerLayer Boundary Size….

  • From the Layers Dialog, you can access it through the Layer Boundary Size… command of its context menu.

7.53.2. La fenêtre de dialogue

Figure 16.119. La fenêtre de dialogue de « Définir la taille de la bordure du calque ».

La fenêtre de dialogue de « Définir la taille de la bordure du calque ».

Template

This drop-down list allows you to pick a size from one of the available image templates. For more information on templates see Create a New Image or the Templates Dialog.

When choosing a template that has a different print resolution (ppi) than your image, two new buttons will appear that ask you how to adjust this.

Scale template to … ppi will adjust the template to the ppi of the image; and Scale image to … ppi will adjust the image to the ppi of the template.

Taille du calque
Largeur; Hauteur

Quand vous appelez ce dialogue, les dimensions d’origine du calque actif sont indiquées. Vous pouvez les modifier. Vous disposez pour cela de deux boîtes de saisie, liées ensemble si le symbole Chaîne associé est intact : le rapport Largeur/Hauteur sera alors conservé si vous modifiez une des dimensions ; sinon, chaque dimension sera indépendante.

Unit of Measurement

L’unité de mesure par défaut est le pixel, mais vous pouvez en changer grâce à la liste déroulante attenante : vous pouvez par exemple utiliser un rapport L/H en pourcentage.

Décalage X; Décalage Y

Ces coordonnées sont relatives au calque, et non à l’image. Elles sont utilisées pour déplacer un cadre qui détermine quelle partie du contenu du calque sera sélectionnée pour le redimensionnement. Dans notre exemple, le calque et son contenu ont les mêmes dimensions et, bien entendu, il n’y a pas de cadre à déplacer. Si vous réduisez la Largeur et la Hauteur, le cadre du calque redimensionné apparaît dans l’aperçu.

A Preview of the layer inside the frame of the canvas

Besides the layer dimensions, a preview represents the layer with the frame of the resized layer. You can move this frame using the X and Y offsets and also dragging the cross-shaped cursor that appears when the mouse pointer moves over the layer area.

Center

The Center button allows you to place the frame at the center of the layer.

Remplir avec

This allows you to select how to fill the background of the layer when you increase its size. The same options are available here as in the Create New Image Dialog.

7.53.3. Redimensionner le calque

Increasing the size of a layer

You can't make the size of a layer larger than the image canvas.

If the layer is smaller than the image, you can enlarge the Width and/or Height. If you want to enlarge the layer to the size of the image, it is easier to use Layers to Image Size.

Reducing the size of a layer

If you want to remove unused parts of a layer, you can reduce the size.

Figure 16.120. Exemple

Exemple

Image d’origine avec 2 calques

Exemple

Les deux calques


Figure 16.121. Exemple

Exemple

Le calque sélectionné pour redimensionnement

Exemple

Le cadre représentant la nouvelle taille de calque. Il a été placé au centre du calque en utilisant le bouton Centrer.


Figure 16.122. Résultat

Résultat

If the image has only one layer, it can be more convenient to use the Crop tool.