Web Graphics

Web graphics  can be used as part of the web content to add to the visual effect of a web site, or as buttons or maps for navigation.

The following list is a summary of the types of common graphic images that are found on web pages:

Image Formats


Images on the Web are usually GIF, JPEG or PNG file formats:

GIF

The original GIF format was designed by CompuServe in 1987, so images in this format are of the type GIF87. When the GIF format was extended in 1989, CompuServe added several new capabilities to the GIF format including transparency, and streaming animation using multiple images in one GIF89a file.

 It was intended to be a platform-independent format with which users could transfer files over modem lines at low speeds. Today the overwhelming majority of images on the Web are in GIF format. Virtually all Web browsers that support graphics support the GIF file format for images. The Gif format Gif has the following features:

JPEG

JPEG stands for Joint Photographic Experts Group. JPEG is excellent for most realistic images (photos for example, but not line drawings or logos). JPEG is not good for small, detailed text or images with hard edges JPEGs main features are:

PNG

PNG is an extensible file format for the lossless, portable, well-compressed storage of raster images. PNG provides a patent-free replacement for GIF.

Which Format?

The HTML specification does not  limit which graphics format you can use. In practice, your choice will be determined by considerations such as:

When to use GIFs or JPEGs- Quick Guide

Considerations on Use of images

Some web browser can't show images (in fact they are text based browser, such as Lynx. You should use the ALT tag in order to show an alternative text in place of the image (note: this is a requirement in xhtml). In this case, a text based browser will show the alternative text. The alternative text will explain the image content.

 Example
<IMG SRC="home.gif" ALT=" home page!">


It will show ' home page' in place of the 'home.gif' image.

Images Sizes

There are two aspects to image/picture size to consider:

Reducing the Image Size

Again you can reduce the screen size or the file size or both. There are two methods used to reduce the screen size:

Both cropping and resizing will reduce the physical file size of the image. The file size can be further reduced by compression.

Related Articles:

Useful External resources: