fluidthoughts developers' guild

fluid funk

lectures / gimp intro / 5

Introduction to the Gimp

Go to Page:

 0   1   2   3   4   [5]   6   7   8   9 

 

file color types

There are various ways that your file will store it's number and type of colors. The most standard is the RGB color standard. The bit-depth of this type of image will store one of 256^3 = 16,777,200 different colors for each pixel, and each pixel can store one of 256 different levels of the alpha channel. (Alpha channel stores transparency information). So these would be 24-bit color images.

There are 4 main types of images commonly used in graphical images, this version of the Gimp doesn't deal with CMYK (Cyan, Magenta, Yellow, BlacK) for separation of color printing in layers. Since computer monitors display images with Red, Green, and Blue light - the amount of colors under CMYK mode that can be presented are significantly smaller.

The other 3 remain, and be switched to freely in the Image menu. We've gone through the RGB phase, the other two are greyscale, and indexed color.

Greyscale stores one of 256 shades of grey for each pixel. If you take an RGB image, and set it to greyscale, you destroy information. This can be switched back to RGB mode, but the colors will not be restored. On the other hand, you can achieve certain effects by filtering out colors, and then bringing some back in. These are 8-bit color images with no alpha channel.

Indexed color is a little different kind of beast. Again, this format stores only 256 different colors. These don't have to be greyscale, but can be a selection of various colors from the RGB range.

Indexed color is typically chosen to create GIF images. There are various optimization techniques to achieve smaller GIF file sizes. One of the most effective is reducing the number of colors in your pallette. GIFs are compressed by looking for horizontal and vertical patterns. The larger your color pallette, the smaller your patterns will tend to be. Gradients can be murderous on the balance of small file size, and visual quality. Greyscaled images are a form of indexed color.

Considering these points, GIFs are much better suited for cartoons, titles, icons, essentially images with a small number of colors.

GIFs can store one extra color in their pallete - transparent. This is not a full gradient of transparency, like an alpha channel, but a single bit which marks for each pixel whether or not it should allow the background color to show through.

When producing well crafted gifs for the web, many times your colors will blend with the background color. There may be alpha-channeled spare pixels hanging around the edges of your image. You can specify which background color you want these semi-transparent pixels to average together with. If the background color is changed, these can then betray a halo - oddly mixed colors surrounding the image.

With photographs, a higher number of colors are needed to faithfully represent the subject material. Another file format that has been designed for use on the web is the JPEG. These look at square sections of images, and attempts to distill it into a gradient pattern. When saving your image, you can choose the Quality/compression amount. This determines how large the pixel square areas are sampled.

Indexed color images may not be saved as a JPEG image, but can be transformed to RGB, or greyscale for this reason.

A third format that is being developed for the web is the PNG standard. PNG boasts to support alpha channels, and have a better compression rate than both JPEGs and GIFs. Many of the modern web browsers support PNG, but many of the older ones do not. This is one of the reasons that it is not widely adopted yet, but PNGs have a bright future.

 

<- back | next - >

Copyleft 2000 by Willie Northway