• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

20.6. Graphics

The typical web graphic is 10KB to 20KB, so they are much larger than typical 4KB HTML in a page. The challenge with graphics is again mostly how to make them smaller without losing much quality.

20.6.1. Weight Watching

Make images small by reducing size in the number of pixels and colors (8 bits is usually enough) and by using a format with compression appropriate to the image. JPEG has better compression than GIF for photos but is lossy, meaning that an image compressed into JPEG format cannot be recovered exactly. The compression is good enough that most users will not know that any information is missing. GIF has better compression than JPEG for line-oriented images because it compresses line by line of pixels. GIF is not lossy. The new Portable Network Graphics format is available in NS4.0 and IE4.0. PNG has yet better compression than JPEG or GIF.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint