Diet Information |
|
Web Site Optimization: How To Speed Up Your Web Site By Minimizing Your GIF and PNG Image "Bit-Depth"Andy King 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 youll 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
Multimedia: Use Lossy Compression for Smaller GIFs and PNGs http://www.websiteoptimization.com/speed/tweak/lossy/
Multimedia: Use Weighted Optimization
Optimizing Web Graphics
PNG Home Site
|
RELATED ARTICLES
Top Wedding Fitness Questions and their answers As a Personal Trainer for brides-to-be, I often get asked the same wedding fitness questions over and over again. Brides and grooms usually are looking for simple and easy ways to get in better shape for their special day. Sowing and Growing Your Network The N-word! We all know the value of networking and we feel we should be doing more of it. Unfortunately, for too many of us the very thought of attending an event where we have to mix and mingle with total strangers is enough to drive us into hiding until its all over! What a pity we often force ourselves to go to a potentially great conference, but were so busy worrying about the networking part that we forget to enjoy the event! How to Make a Seductive Chili Dedicated Chili cooks always seem to be looking for an amazing recipe for a blow-you-out-of- the-water chili. Wouldnt it be exciting to UNLEASH your chili and rock your family and friends’ worlds, save money and have a great time preparing it Vegetarian Does Not Have To Be "All Or Nothing" Many people contemplate becoming a vegetarian at one point or another. Some consider a meatless diet because they feel sorry for the animals. Others think a vegetarian way of eating will improve their health. Cannot Lose Those Extra Pounds Of Weight Intake of fats and carbohydrates in excess results in obesity. Lack of exercise, physical work also helps in accumulation of fat in the body. In Ayurveda this condition is called medoroga. The fat in the body is primarily drawn from the oils, ghees, and other fatty substances consumed through food and drink. Chocolates, wafers, sweets, remember excessive fat may also impair the function of the vital organs like heart, liver, joints and the kidneys. Obesity may also cause diabetes, asthma, arthritis, high blood pressure. Can Eating Certain Foods Help You to Lose Weight Experts have discovered that certain foods can actually help you to lose weight without the stress of dieting or exercise. The down side is that many of us have a tendency to dress these foods up with cheese, sour cream, butter or other calorie-laden flavor enhancers. This causes the weight loss effect to be lost. It may be difficult to not add extra calories to these foods but with a strong will power it can be done. Trade In Your Diet For A Lifestyle! Dieting is a pain. I think basically everyone would agree that having to adhere to a rigid restriction of your free-flow eating preferences puts a bit of a damper on the whole food experience. And eating should be one of the pleasures of life, right I Have a Headache! Really. Not a great big skull-splitting headache. Just one of those little low-pressure guys. And I know why. It’s because I’ve been thinking too much. I really need to try to cut back on that. 9 Ways to Motivate Yourself When You Just Dont Feel Like It Achieving the really big goals and dreams always involves breaking it down into do-able little steps. Assuming that youve picked a goal or dream that you really love working at, then most of the steps are a delight to take. No matter how much you love your dream and no matter how much you love your work, there are going to be tasks along the way that you really dont want to do. Those pieces of work that we hate doing can be the very ones that sabotage our success. How do you stay motivated during those parts of the journey Fast Food "Hey, Not So Fast!" Menopause and Bioidentical Hormones Can menopause symptoms be safely comforted with bioidentical hormones You Can Do Business Online 201 If you read my 101 course, you now have a website and you have begun basic promotion. It is time to increase the traffic flow! Now is the time to increase links to your site. This serves you two purposes. Number one is the obvious, the more links, the more ways for people to find your site. Number two, the more links, the higher your search engine rankings! The first step is to take a trip to a search engine and type in words related to your site. This will bring up a whole list of sites that you can potentially get your link on. Now it is time for some work. You need to visit each site one by one and determine if it is appropriate for a link to your site. Do they have a list of website links or resources already Would they benefit from your link Some sites will list your link for free. Others will require link swaps, which are valuable as long as the subject matter is related. In other words, will your customers find these links useful If you have a health product site and you link a fitness site, both of you will benefit from each others customers. So find the sites and then email them your proposal for a listing or link swap. Remember to make it appealing to them. New Year’s Resolution: Love Your Body! Ah, the beginning of a New Year. A time to reflect and start anew: new hopes, dreams, goals for yourself. Speaking of which, have you taken that all important inventory of your body, yet Is this the year you’re going to make the change You to Can Ski Down Mount Everest Getting to the summit is optional, getting down is mandatory. - David Breashears- Gaining Muscle Mass This article will discuss how to gain weight naturally muscle building. Gaining weight naturally is about muscle building and using a mass building diet daily. The question of how to gain weight is a common one, however the answer lies in your diet. Below we will give an example of a mass building diet for one day of the week. Protein - Its Place In Your Weight Loss Program Any food that we take into our bodies is composed of macronutrients, micronutrients and water. The macronutrients macro = large are protein, fat and carbohydrates; the micronutrients micro = small are vitamins, minerals and trace elements. Macronutrients provide the calories that provide energy for life; micronutrients have no calories but are an essential part of our diet. Without macronutrients we would starve to death, without micronutrients we would die from health deterioration. Body Fat Distribution Factors Most men and women put on weight differently. But on what makes fat settle in a preferential way, there is little evidence. Successful New You Resolutions in Ten Strategic Steps Whether you are setting personal or business goals, the key to successful New Years Resolutions is to create a strategic plan. The following steps will guide you through the goal setting and achievement process. Losing Weight During the Holiday Season By now, I am assuming your schedule is pretty hectic in preparation for the Holiday Festivities. Why Do You Say You Want To Lose Weight How many of your New Years resolution start out with "I want to lose x amount of pounds"as if just saying it were some kind of magic mantra. |
home | site map |
© 2005 |