Continued from page 1
Conclusion
To minimize
file size of palette-based image formats like GIF and PNG, minimize their bit-depth, or number of colors. Each time you pass a power of two, file size jumps higher. By minimizing
number of colors, and maximizing
flat-color areas you will create smaller, more efficient images destined for
Web.
Further Reading:
LZW Data Compression http://www.dogma.net/markn/articles/lzw/lzw.htm Mark Nelson breaks down
LZW compression algorithm for Dr. Dobb's Journal of October 1989.
Multimedia: Use Lossy Compression for Smaller GIFs and PNGs http://www.websiteoptimization.com/speed weak/lossy/ Lossy compression lets you squeeze more bytes out of your GIFs and PNGs. Lossy compression increases identical pixel patterns to improve compression in indexed-color images.
Multimedia: Use Weighted Optimization http://www.websiteoptimization.com/speed weak/weighted/ Weighted optimization or regional compression applies different degrees of compression to different areas of your image. By varying
quality within images you can improve file size.
Optimizing Web Graphics http://www.websiteoptimization.com/speed/12/ Chapter summary from Speed Up Your Site, shows how to correct, optimize, and compress images for minimum file size and maximum quality.
PNG Home Site http://www.libpng.org/pub/png/ Greg Roelofs site devoted to all things PNG.

Article by Andy King, author of the popular new book titled "Speed Up Your Site – Web Site Optimization". Visit Andy King's web site to learn the best Web Site Optimization practices for higher traffic and speed guaranteed. www.websiteoptimization.com