Search Engine Marketing - PPC Services Company

Stop Parking Domain Names
Develop Your Domain Names
 

Web Site Optimization: How To Speed Up Your Web Site By Minimizing Your GIF and PNG Image Bit-Depth


Are bloated images slowing down your web site and causing you lost business? Images comprise over 50% of the average web page so putting them on a diet is essential to improving web performance. One of the best ways to optimize GIFs and PNGs is to minimize the "bit-depth" or the number of colors within your images.

For palette-based formats like GIF and PNG, file size is directly related to the size of the color palette, or the number of colors in the image. As the number of colors in an image crosses a power of two, the file size jumps. A 33-color image must use a six-bit palette, while a 32-color image can use a 5-bit palette. Smaller palettes mean smaller codes (representing pixel patterns), which makes for smaller files. So minimizing the number of colors in index-color images like GIFs and PNGs will minimize file size.

The compression schemes used in GIFs (LZW) and PNGs (Deflate) are dictionary-based encoding algorithms. Dictionary based compression algorithms substitute shorter codes for longer patterns of strings within the data stream. Pixel patterns (substrings) in the data stream found in the dictionary are replaced with a single code. If a substring is not found in the dictionary, a new code is created and added to the dictionary. Compression is achieved when smaller codes are substituted for longer patterns of data.

The code size is based on the number of bits per pixel, and depends on the maximum length code within your dictionary. Thus the smaller your bit-depth, the smaller the codes representing your pixel pattern strings, and the smaller the file.

Choosing the right format for your images is the first step in optimizing web graphics. At lower bit-depths, banding can appear in smooth-toned images. Try quantizing your image to different palettes to minimize banding.

PNG Compression

PNG uses the deflate compression algorithm which is a newer, more efficient cousin of LZW. Deflate is designed to be free of patent problems. Deflate is a combination of the LZ77 algorithm found in zip programs like WinZIP and gzip, and Huffman coding. Deflate typically compresses files 20 to 30 percent smaller than LZW, which is the difference you'll find between gzip and compress. PNGs use a similar substitution technique, but are generally 5 to 25 percent smaller than GIFs, although there are exceptions. In addition to horizontal "scan-line" pattern substitution PNGs sometimes substitute for vertical patterns. PNG can also truncate color palettes. In general, the smaller the color palette, the smaller the overal file size.

Conclusion

To minimize the 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 the number of colors, and maximizing the flat-color areas you will create smaller, more efficient images destined for the Web.

Further Reading:

LZW Data Compression


http://www.dogma.net/markn/articles/lzw/lzw.htm


Mark Nelson breaks down the 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/tweak/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/tweak/weighted/


Weighted optimization or regional compression applies different degrees of compression to different areas of your image. By varying the 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.

About The Author

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

MORE ARTICLES:


Capricorns Come in Last According to New Firstmed Consulting Studies
There are many known disadvantages to celebrating a birthday around the Christmas season -- joint birthday/Christmas presents, people unavailable on the big night due to office parties etc. Less known is that according to recent studies, those born around Christmas may have a higher probability of erectile difficulties.

Find Rare, Distinctive Holiday Treasures on Penn State Web Site
Whether it's a Christmas tree, a decorative wreath or a goose for your dinner table, the holiday season can find you searching for hard-to-find foods and other natural items. But a Web site run by Penn State's College of Agricultural Sciences can make your holiday shopping struggles as simple as surfing the Internet.

Residual Income-Earn Money Through Affiliate Marketing Today!
Did you know one of the best ways to earn money online is finding programs that contain reoccurring charges to promote Finding programs with reoccurring charges to promote is known as residual income

Health Consultant Looks for Gems Amidst Network Marketing Debris
Most MLM health products are sold through hype by distributors who don't have the background to question the quality of the products. One health consultant believes that products ought to undergo careful scrutiny and be sold on their merits rather than through slick marketing. He points to the surest way to find a winner.

Seniors Connected, a Nationwide Network of City, County, State and National Web Sites Designed for the Seniors Demographic, has Just Launched
Along with having a unique arena for the exchange and communication of information at the national, state, county and city levels, seniors can research subjects encompassing virtually every interest and concern they may have. In addition, there is a calendar of events, a private section for seniors to organize their own personal lives, a section for Seniors oriented organizations to establish their own presence and dozens of additional features. Along with the Nnational site, UnitedStatesSeniors.com, this network will encompass over two thousand towns, cities, counties and states when fully deployed over the next 12-18 months.

Strategic Research Network Introduces New Internet Marketing Training
Strategic Research Network (SRN), an international business intelligence and lead generation company, held its National Conference in Denver, Colorado the weekend of June 1-2. At the conference, Strategic Research Network introduced its new Internet Marketing Training. It provides SRN Researchers with the tools and knowledge to offer Internet Marketing services to their clients in addition to their current research offerings. The Internet Marketing Services include the services of search engine optimization (SEO), pay-per-click advertising (PPC), and corporate email marketing strategy (EMS).

CDW Selects SendTec as SEM Agency of Record : Favors Unique Approach to Search Engine Marketing
SendTec, Inc. (OTCBB:SNDN), a leading customer acquisition ad agency with expertise in multi-channel integrated direct marketing, has been selected to manage CDW?s new search engine marketing (SEM) campaign. CDW is a leading provider of technology products and services for business, government and education, and is ranked 39th on Forbes? list of America?s Largest Private Companies.

PrintingForLess.com Helps Politicians' Campaign Marketing Messages Spread Fast
Win more votes with customized and cost-effective campaign flyers, postcards and door hangers from America's 2008 Campaign Printing Headquarters

NJ Landscape Design Company Raises the Bar in Outdoor Kitchens & Grills
Award winning outdoor kitchen & bar design detailed with brick, natural stone & fitted with all the modern amenities that makes for an unforgettable Al fresco dining experience in Saddle River New Jersey.

Fire Destroys Homes of Nine Families in Paterson, New Jersey, National Mortgage Expert Based in Teaneck, New Jersey Helps with Gifts And Groceries
On October 14th, Joe Gross set out to Paterson, NJ with a team of volunteers. He met all of the residents of the three homes and spoke with each family individually. Each family received boxes of groceries and produce, a $400 Target gift card, a $500 grocery coupon card, Dunkin Donuts gift certificates and 2 free movie tickets.

dotPhoto and Noromis Announce Web Integration - dotphoto.com/dotPhotoGo
New version adds easy, yet ultra high quality web sharing

Gannett Company, Inc. Chooses VoicePort Again for Second COE
Gannett chooses VoicePort CircPort? speech recognition IVR in a second Center Of Excellence (COE) to automate 6.5 million circulation phone calls annually.

Web Accessibility Myths
With more and more countries around the world passing laws about blind and disabled access to the Internet (including the Disability Discrimination Act in the UK), web accessibility has been thrown into the spotlight of the online community. This article attempt to put a stop to the misinformation that has been thrown around and tell you the truth behind web accessibility.

Why Are So Many People Starting Home Based Internet Marketing Businesses?
Do you know why so many people want their own home business There are many different reasons why people all over are looking for home based internet marketing businesses

Another Expansion Announced for Mainstream Technologies, Inc. - On Track to Meet 4-year Strategy to Double Size of Company
Little Rock based Mainstream Technologies, Inc. (www.mainstream-tech.com) is pleased to announce the completion of another round of hiring to meet the demands of continued business growth. This new round of hiring adds four key personnel to the Mainstream staff and is part of a planned expansion that will double the company's size over the next four years. It coincides with the company's relocation to the former Federal Reserve Bank building in Downtown Little Rock scheduled for mid-September.

Develop Your Domain Names | Site Map | Home

Privacy Policy | Copyright/Trademark Notification