Chapitre 3. First Steps with GIMP

Table des matières

1. Concepts de base de GIMP
2. Fenêtres principales
2.1. La Boîte à outils
2.2. Fenêtre d’image
2.3. Dialogues, fenêtres et onglets
3. Annuler
3.1. Ce qui ne peut pas être annulé
4. Tâches communes
4.1. Objectif
4.2. Changer la taille d’une Image pour l’écran
4.3. Changer la taille d’une image en vue d’une impression
4.4. Compresser une Image
4.5. Découper une Image
4.6. Trouver l’information sur votre image
4.7. Changer de mode
4.8. Retourner une Image
4.9. Rotation d’une image
4.10. Extraire un objet de son arrière-plan
5. Comment tracer des lignes droites
5.1. Objectif
5.2. Exemples

1. Concepts de base de GIMP

Figure 3.1. Wilber, la mascotte de GIMP

Wilber, la mascotte de GIMP

The Wilber Construction Kit ( src/images/Wilber_Construction_Kit_original.xcf) allows you to give GIMP's mascot named Wilber a different appearance. It is the work of Tuomas Kuosmanen (tigert).


Cette section est une brève introduction aux concepts de base et à la terminologie dont vous aurez besoin pour comprendre le reste de la documentation. Tout ce qui est ici est expliqué avec plus de détail ailleurs. Avec peu d’exceptions, nous avons évité d’obscurcir cette section avec de nombreux liens et autres références croisées : tout ce qui est mentionné ici se retrouve facilement dans l’index.

Images

Les images sont l’entité de base de GIMP. Communément, une « image » est un simple fichier, comme un TIFF ou un JPEG. Il se peut que vous pensiez qu’une image correspond à une fenêtre d’affichage, mais cela n’est pas correct : il est possible d’avoir plusieurs fenêtres affichant une seule image. Il n’est pas possible d’avoir une seule fenêtre affichant plus d’une image, en revanche une image peut ne pas avoir de fenêtre qui l’affiche.

Une image GIMP sera un peu plus compliquée. Au lieu de la penser comme une feuille de papier avec un dessin dessus, vous devez plutôt la concevoir comme une pile de feuilles transparentes, dont les pages s’appellent des « calques ». En plus d’une pile de calques, une image GIMP peut contenir un masque de sélection, un ensemble de canaux et un ensemble de chemins. En fait, GIMP fournit un mécanisme pour attacher des données, appelés des « parasites » à une image.

Vous pouvez ouvrir plusieurs images en même temps dans GIMP. Si elles sont grandes, chacune utilisera plusieurs mégaoctets de mémoire, mais GIMPutilise un procédé de gestion de la mémoire perfectionné basé sur un découpage en morceaux qui lui permet de manipuler les très grosses images facilement. Il y a tout de même des limites, et il est souhaitable, lorsque vous travaillez avec des images, de mettre autant de mémoire dans votre ordinateur que possible.

Calques

If a simple image can be compared to a single sheet of paper, an image with layers is likened to a sheaf of transparent papers stacked one on top of the other. You can draw on each paper, but still see the content of the other sheets through the transparent areas. You can also move one sheet in relation to the others. Sophisticated GIMP users often deal with images containing many layers, even dozens of them. Layers need not be opaque, and they need not cover the entire extent of an image, so when you look at an image's display, you may see more than just the top layer: you may see elements of many layers. For more info see Introduction to Layers.

Définition

Digital images consist of a grid of square pixels. Each image has a size measured in two dimensions, such as 900 pixels wide by 600 pixels high. But pixels don't have a set size in physical space. To set up an image for printing, we use a value called resolution, defined as the ratio between an image's size in pixels and its physical size (usually in inches) when it is printed on paper. Most file formats (but not all) can save this value, which is expressed as ppi—pixels per inch.

When printing a file, the resolution determines the size the image will have on paper, and as a result, the physical size of the pixels. The same 900×600 pixel image may be printed as a small 3×2" card with barely noticeable pixels—or as a large poster with large, chunky pixels.

Images imported from cameras and mobile devices tend to have a resolution attached to the file. The resolution is usually 72 or 96ppi. It is important to realize that this resolution is arbitrary and was chosen for historic reasons. You can always change the resolution with GIMP—this has no effect on the actual image pixels. Furthermore, for uses such as displaying images online, on mobile devices, television or video games—in short, any use that is not print—the resolution value is meaningless and is ignored. Instead, the image is usually displayed so that each image pixel conforms to one screen pixel.

Canaux

Un canal est un composant de la couleur d’un pixel. Les composants de couleur d’un pixel coloré sont habituellement le Rouge, le vert, le Bleu et souvent la transparence (l’Alpha). Pour une image en Niveaux de gris, ce sont le Gris et l’Alpha. Pour une image indexée, c’est la couleur dans l’Index et l’Alpha.

The entire rectangular array of any one of the color components for all of the pixels in an image is also referred to as a Channel. You can see these color channels with the Channels Dialog.

Ces canaux de couleur sont re-combinés avant d’être envoyés sur le périphérique de sortie (la plupart du temps l’écran). Les canaux employés pour l’affichage écran sont le rouge, le vert et le bleu. D’autres périphériques de sortie peuvent utiliser des canaux différents. Si c’est le cas, les canaux GIMP sont convertis de façon appropriée au périphérique lors de l’affichage.

Les canaux de couleur peuvent être utiles lors de l’ajustement d’une couleur particulière d’une image. Par exemple, si le but est de supprimer les yeux rouges, un travail sur le canal rouge est sans doute la solution.

Vous pouvez considérer les canaux de couleurs comme des masques qui modulent la sortie de la couleur que le canal représente. En utilisant des filtres sur l’information du canal, vous pouvez créer de subtils effets sur l’image. Un exemple d’utilisation d’un filtre sur un canal de couleur se trouve dans Mixeur de canaux.

Outre ces canaux de couleur, GIMP propose d’autres canaux appelés « masques de canaux », affichés à part en bas de la Fenêtre des canaux. Vous pouvez créer un tel masque à partir d’une sélection en utilisant la commande Enregistrer dans un canal. Vous pouvez aussi en créer un grâce à la commande Nouveau canal. Voyez le glossaire à l’entrée Masques.

Sélections

Often when modifying an image, you only want a part of the image to be affected. The « selection » mechanism makes this possible. Each image has its own selection, which you normally see as a moving dashed line separating the selected parts from the unselected parts (the so-called « marching ants »). Actually this is a bit misleading: selection in GIMP is graded, not all-or-nothing, and really the selection is represented by a full-fledged grayscale channel. The dashed line that you normally see is simply a contour line at the 50%-selected level. At any time, though, you can visualize the selection channel in all its glorious detail by toggling the Quick Mask button.

A large component of learning how to use GIMP effectively is acquiring the art of making good selections—selections that contain exactly what you need and nothing more. Because selection-handling is so centrally important, GIMP provides many tools for doing it: an assortment of selection-making tools, a menu of selection operations, and the ability to switch to Quick Mask mode, in which you can treat the selection channel as though it were a color channel, thereby « painting the selection ». For more information, see also The Selection.

Annuler

When you make mistakes, you can undo them. Nearly everything you can do to an image is undoable. In fact, you can usually undo a substantial number of the most recent things you did, if you decide that they were misguided. GIMP makes this possible by keeping a history of your actions. This history consumes memory, though, so undoability is not infinite. Some actions use very little undo memory, so that you can do dozens of them before the earliest ones are deleted from this history; other types of actions require massive amounts of undo memory.

You can configure the amount of memory GIMP allows for the undo history of each image, but in any situation, you should always be able to undo at least your 2-3 most recent actions. The most important action that is not undoable is closing an image. For this reason, GIMP asks you to confirm that you really want to close the image if you have made any changes to it. For more information, see also Undoing.

Greffons

A lot of the things that you do to an image in GIMP are done by GIMP itself. However, GIMP also makes extensive use of « plug-ins », which are external programs that interact very closely with GIMP, and are capable of manipulating images and other GIMP objects in very sophisticated ways. Many important plug-ins are bundled with GIMP, but there are also many available by other means. In fact, writing plug-ins (and scripts) is the easiest way for people not on the GIMP development team to add new capabilities to GIMP.

Toutes les commandes du menu Filtres, et une bonne partie des commandes des autres menus, sont en fait implémentées par des greffons.

Scripts

In addition to plug-ins, GIMP can also make use of scripts. Scripts are written in a language called Script-Fu, which is unique to GIMP (for those who care, it is a dialect of the Lisp-like language called Scheme). In the past there was a clear distinction between scripts and plug-ins, but that is disappearing. Depending on which Script-Fu interpreter you use, Scheme scripts can also be installed as plug-ins.