2. Préparer vos images pour Internet

Une des utilisations les plus communes de GIMP est la préparation d’images pour les ajouter à une page Web. C’est-à-dire des images qui, tout en restant belles, sont les plus légères possibles afin de réduire la durée de leur téléchargement. Ce didacticiel va vous guider pas à pas.

2.1. Images avec un rapport Taille/Qualité optimal

An optimal image for the web depends upon the image type and the file format. Use JPEG for Photographs because they usually have many colors and great detail. An image with fewer colors, such as a button, icon, or screenshot, is better suited to the PNG format.

  1. Ouvrez d’abord l’image comme d’habitude. J’ai ouvert notre cher Wilber comme exemple.

    Figure 6.2. L’image de Wilber en mode RVBA.

    L’image de Wilber en mode RVBA.

  2. L’image est actuellement en mode RVB avec un canal Alpha (RVBA). Il n’y a pas besoin d’un canal Alpha pour votre image Web ; vous pouvez le supprimer avec Aplatir l’image.

    Une photographie a rarement un canal Alpha, et l’image sera ouverte en mode RVB plutôt qu’en mode RVBA. Vous n’aurez pas de canal Alpha à supprimer.

    [Note] Note

    If the image has a soft transition into the transparent areas, you should not remove the alpha channel, since the information used for the transition is not be saved in the file. To export an image with transparent areas that do not have a soft transition, (similar to GIF), remove the alpha channel.

  3. After you have flattened the image, export the image in the PNG format for your web site.

[Note] Note

You can export your image in the PNG format with the default settings. Always using maximum compression when creating the image. Maximum compression has no effect on image quality or the time required to display the image, but it does take longer to export. A JPEG image, however, loses quality as the compression is increased. If your image is a photograph with lots of colors, you should use jpeg. The main thing is to find the best tradeoff between quality and compression. You can find more information about this topic in Section 5.5.3, « Export Image as JPEG ».