2. Bilder für das Web aufbereiten

Eine der häufigsten Anwendungen für GIMP ist das Erstellen oder Bearbeiten von Bildern zur Verwendung im Web (z.B. für die eigene Homepage). Dies bedeutet, dass die Bilder so gut wie möglich aussehen, aber dennoch eine kleine Dateigröße aufweisen sollen, um Bandbreite zu sparen und die Ladezeiten der Webseiten nicht unnötig zu erhöhen. Dieser Abschnitt soll Ihnen zeigen, wie man kleine Dateien bei geringem Qualitätsverlust erstellt.

2.1. Bilder mit einem optimalen Größe- / Qualitäts-Verhältnis

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. Als erstes öffnen Sie wie immer Ihr Bild. Als Beispielbild benutze ich hier das GIMP-Maskottchen »Wilber«.

    Abbildung 6.2. Das Bild mit Wilber im RGBA-Modus geöffnet

    Das Bild mit Wilber im RGBA-Modus geöffnet

  2. Das Bild befindet sich jetzt im RGB-Modus mit einem zusätzlichen Alphakanal (RGBA). Meistens benötigen Sie keinen Alphakanal, wenn Sie Bilder für das Web erstellen möchten. Daher können Sie ihn entfernen. Das geschieht durch einen Klick auf Bild zusammenfügen.

    Fotos haben meist keinen Alphakanal, so dass Sie dieses wahrscheinlich im RGB-Modus geöffnet haben und Sie den Alphakanal nicht entfernen müssen.

    [Anmerkung] Anmerkung

    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.

[Anmerkung] Anmerkung

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 Abschnitt 5.5.3, „Export Image as JPEG“.