2. Preparare immagini per Internet

Uno degli usi più comuni di GIMP è per preparare immagini che devono apparire meglio possibile su un sito Web. Questo significa che le immagini devono rendere il meglio possibile ma contemporaneamente non essere troppo grandi per non appesantire la fruibilità del sito. Questa piccola guida passo passo spiegherà come ottenere il risultato di file immagine di piccola dimensione con una degradazione minima nella qualità.

2.1. Immagini con un rapporto ottimale dimensione/qualità

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. Per prima cosa aprire l'immagine come di consueto. Nel nostro caso apriremo l'immagine di Wilber come esempio.

    Figura 6.2. L'immagine di Wilber aperta in modalità RGBA

    L'immagine di Wilber aperta in modalità RGBA

  2. L'immagine ora è in modalità RGB, con un canale alfa aggiuntivo (RGBA). Normalmente non c'è bisogno di un canale alfa per le immagini web. È possibile eliminarlo con il comando immagine appiattita.

    Una fotografia raramente possiede un canale alfa, perciò essa probabilmente si aprirà in modalità RGB piuttosto che in RGBA e quindi non sarà necessario rimuovere il canale alfa.

    [Nota] Nota

    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.

[Nota] Nota

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 Sezione 5.5.3, «Export Image as JPEG».