| [Index of Lessons] [Lesson 5] [Lesson 6.1] |
6. Graphics and File Formats |
| This page is just information, if you don't really care too much about learning background knowledge on graphics for web pages, then I suggest you skip to the next lesson. There are numerous file formats for computer graphics. The main ones involved for web pages are Jpeg's and Gif's. | |
| A web browser displays graphics in a HTML format which indicates
the location of a graphic file in a single format that can be interpreted
by different types of computers. In technical jargon, you would say that this picture format is platform independent. HTML itself is platform independent, since plain text characters can be understood by any computer. Platform independent means that it doesn't matter what system you have or run, there will be no errors when accessing the file. The standard format that can display within a web page is GIF or Graphics Interchange Format. The GIF compresses the picture information (reduces the file size) and translates it to binary code that can be sent over the Internet. GIF compression is most effective on graphics that have contiguous areas of solid color, and compression is even greater when the color is continuous in the horizontal direction. The other file format used on the web is JPEG (named after the Joint Photographic Engineering Group that designed this format). Previously, JPEG images were not displayed in the page but were displayed in a separate window, using an external "helper" application. But most web browsers these days support JPEG images to be displayed right in the web page too. JPEG compression is very effective for photographic images where the colors can vary over short distances ("grainy" images). JPEG offers some dramatic compression in filesize, sometimes by a factor of 10 (i.e. a 1500 kb file reduced to 150 kb), which may be at a trade-off for some image quality. |
| Some Points to Consider When Using Graphics As you begin to develop your own web pages, you should become familiar with creating pictures in either GIF or JPEG format. If your web pages include graphics, consider the following suggestions:
You may design a beautiful web page, loaded with large pictures,
that may load nicely from your computer, but may be excruciatingly slow
by a viewer using a slow modem over a busy network. |
| Click on Lesson 6.1 to continue, or click here (Top) to return to the top of document |