2. Подготовка изображений к публикации в Интернете

GIMP часто используется, чтобы подготовить изображения для последующего включения в страницу интернета. Это означает сохранение качества, насколько это возможно, и уменьшение размера файла. Эта короткая инструкция описывает, как это сделать с минимальной потерей качества.

2.1. Изображения с оптимальным соотношением размера и качества

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. Сначала откройте изображение как обычно. Для примера используется изображения Уилбера.

    Рисунок 6.2. Изображение с Уилбером в режиме RGBA

    Изображение с Уилбером в режиме RGBA

  2. Сейчас изображение в режиме RGB с дополнительным каналом альфа (RGBA). Обычно нет необходимости держать альфа канал для изображений, предназначенных для интернета. Канал альфа можно удалить сведением изображения.

    В фотографиях канал альфа обычно не присутствует, поэтому изображение откроется в режиме RGB, а не в режиме RGBA. Канал альфа не придётся убирать.

    [Примечание] Примечание

    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.

[Примечание] Примечание

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 Раздел 5.5.3, «Export Image as JPEG».