ThePlace

Home ] Search ] Resources ] Site Map ] Contact Me ]
Dave's Information Technology Resource

Up ]

Graphic Tips ] [ Graphic File Format Comparisons ] Animated GIFs ] Transparent GIFs ] Image Maps ] Safe Colors ] Scanners, Cameras, etc ]

--- Graphic File Format Comparisons ---

File Type Comparisons

Note: Not all graphics will appear in all browsers (specifically Bitmap and Portable Network Graphics)

Graphic file format information...

bulletThere are numerous file formats for graphics.
bulletBitmap is a popular format for capturing and displaying computer images.  All of the information is stored as a series of pixels (by height and width) with each pixel ranging in color depth from 2 to millions of colors.
bulletBitmaps are not compressed, therefore, they maintain the highest image quality.
bulletColor depth
bulletA single bit can be used to represent two colors 
bullet4 bits=16 colors
bullet8 bits (1 byte)=256 colors
bullet16 bits (2 bytes) = 65,536 colors (high color)
bullet24 bits (3 bytes) = 16+million colors (true color)
bulletJPEG and GIF are popular file formats for web-based graphics--they both enable compression of graphic images.
bulletGIF (Graphics Interchange Format)...
bulletConsidered a lossless compression (it uses a technique of grouping same color pixels to minimize file storage).
bulletIt is limited to 256 colors
bulletUses LZW compression, a proprietary format owned by Sperry
bulletIncludes transparent and animated capabilities
bulletJPEG (Joint Photographic Experts Group)
bulletIs a lossy compression format (pixels are averaged).
bullet24 bit color
bulletVariable compression feature
bulletCompression algorithm is in the public domain.
bulletPNG (Portable Network Graphics)...
bulletAn emerging file format developed by Microsoft as a replacement for GIF.
bulletUp to 24 bit color
bulletNot supported by all browsers.

 

Photograph - JPG is the best format for web delivery

Bitmap BMP - 16 million colors - 200 X 151 pixels (89 KB)

Bitmaps are uncompressed representations of images.  The image is made up of pixels, each pixel ranges from 2 to over 16 million colors.  The color for each pixel is stored in bits and bytes (remember 8 bits = 1 byte).  For example:

File size depends on the color depth (typically 2, 16, 256, 64,000, and 16 million colors) and the size of the image.  For example:

bullet

Full screen (640 X 480 pixels - VGA) image at 256 colors requires about 310,000 bytes.  

bullet

A full color image (16 million colors) would require over 900,000 bytes.

Portable Network Graphics PNG (29 KB)

PNG is a newer format released by Microsoft as a potential replacement for GIF.  PNG graphics range up to 24 bit (16 million) color images.

JPG - 16 million colors (6 KB)

JPG files are based on 24 bit color.  They are optimized for photographic images or graphics with a great deal of color to create smooth surface appearances (e.g., skin color).

GIF - limited to 256 colors (20 KB)

GIF is technically a proprietary format requiring a license agreement to use the LZW compression algorithm.  GIF is limited to 256 colors. 

Drawn Image - GIF is best for web delivery

 

Bitmap BMP - 16 Million colors - 316 X 201 pixels (187 KB)

PNG (4 KB)

 

JPG (10 KB)

 

GIF (5 KB)

 

Home ] Up ] Computer Architecture ] Programming Bootcamp ] Database Bootcamp ] Visual BasicS ] Web Basics ] Web Multimedia ] Web Programming ] Advanced Web Topics ] Developing Web Sites ] XML Technology ] Web Glossary ]

Copyright © 1999 - 2005 
ThePlace - Written and Sponsored by Dave Hillman