Images and graphics are a fundamental source of communication. I would rather show a picture of the ‘Monalisa’ to people and have them appreciate her beauty than describe her with lots of adjectives!
So we all understand why images are important not only on the web but also in our day to day lives. In this article we will discuss some basics of web images that will help build a foundation for other articles in this section.
Now, images and graphics made on the computer can be broadly classified into two, CMYK and RGB depending on their color information. Images and graphics can also be classified into two categories – Vector and Raster – depending on how information is stored.
CMYK, which stands for Cyan, Magenta, Yellow and Black (K), images are used in the print media such as magazines, newspapers etc. Printing machines use inks of these four colors. Other colors are derived by mixing these four fundamental colors in appropriate proportions.
RGB takes its name from Red, Green and Blue colors. RGB images are meant for display on display screens such as computer monitors, TVs, LCD monitors etc. These devices use 3 basic colors and all other colors are made by mixing red, green and blue.
Since the topic of discussion is web graphics, we’ll be concerning ourselves with RGB images only.
RGB images can be stored in various file formats. Common RGB image formats are the TIFF (Tagged Image File Format) and BMP (Bitmap). Most image editing and manipulation tools have their proprietary formats, such as .PSD (Adobe PhotoShop), .PSP or .PSPIMAGE (PaintShop Pro) etc.
The World Wide Web gave birth to other RGB file formats such as .GIF, JPG and .PNG. These formats employ compression algorithms (JPG compression algorithm and Gif compression algorithm) that decrease the file size of the image. Images on the web are, thus, compressed. Why? Smaller images result in faster download times.
Pixels are the building blocks of an image. Each pixel has only one color. Here is an image of a circle magnified many times. You’ll notice that the circle is actually made of up individual squares. These squares are called pixels.
When you view the image at its original size, you won’t be able to see the pixels, rather the image has a smooth round circle. The reason why you can’t see individual pixels is because they are very small and the human eye is not able to distinguish them individually. Note how the varying shades of grey pixels (in the magnified image above) are placed beside each other to create a smooth outline of the circle.
File formats such as .BMP, .JPG, .GIF, .TIFF etc are all raster images formats, which carry color information of each pixel in graphic. This makes raster images quite large in size even when compression algorithms are used. Vector images store information in form of mathematical equations. A circle or a square will be represented by formula rather than pixel information. This makes vector images relatively smaller in size.
The .GIF, .JPG and .PNG formats, which are prevalent on the web, are all raster image formats. One of the promising vector image technologies for the Internet is SVG but it’s yet to become popular. (SVG requires a browser plugin. At the time of writing, the plugin was only available for Internet Explorer).
By September 2012, Apple had sold more than 350 million iPods. [more...]