Basics of images on the web

Basics of images on the web cover image
  1. Home
  2. Graphics
  3. Basics of images on the web

Why use Images on the Web?

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.

Sponsored Links

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

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

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 image formats

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.

Important points to remember for web graphics

What are PIXELS?

Pixels in RGB imagesPixels 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.

Pixels in RGB imagesWhen 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.

Vector and Raster graphics

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.

Vector and Raster graphics on the Web

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).

Graphics Images & photos