![]()
Making Photos Load FasterBy Susan IvesIf you've hung around the Web for a while you probably remember when the height of chic was black text on a gray background. Boring - but it sure did load fast. They were also the days when most people had 28.8 modems, so load time was more of an issue than it is now. But don't discount it. Fewer than 10% of the people viewing your site will have high-speed connections, such as DSL or Cable. The rest are still viewing your site at dialup speed. My design relies heavily on graphics. I like my sites to be inviting. But I am careful, always careful, to make my graphics load as quickly as possible.
Size matters I can force the photo to look smaller on the screen by using these attributes in the HTML code: <IMG SRC="photo.jpg" width="320" height="240">But there's a catch. This JPG straight from my camera is 638KB. That's a lot of download time! If I use HTML code to make the photo look smaller, it will still be 638KB. If I use my graphics editing software to make the photo physically smaller, downsize it to 320x240 pixels, I can get the weight down to less than 165K. Using a 56.6 modem, the larger file would take about 100 seconds to appear on the screen, the smaller photo about 25 seconds. Drag-and-drop programs make it convenient to resize the appearance of a picture while leaving the original size intact and the download time long. It pays to take the time to physically alter the size of your photos.
Quality matters When working with the JPEG format (photos should always be JPEGs) you have a choice of selecting a quality level between 0 and 100, or low, medium, high and maximum. I've found that a low resolution is often good enough, almost indistinguishable from the original. This same 320x240 photo saved at a low resolution is less than 13 KB and will load in about 2 seconds with a 56.6 modem. Saved at a medium resolution still saves you time and space: it's about 21KB and loads in a little over 3 seconds. Making your images use fewer kilobytes without a noticeable loss of quality is called optimizing your images. Many software programs take the guesswork out of this, including JASC Paintshop Pro and Adobe Photoshop Elements. Both retail for $99. If your graphics program doesn't do this, one of these programs would be a good investment. If you would like to test-drive a graphics optimization program, download the 30 day free trial of WebGraphics Optimizer at www.webopt.com/. The standard version costs $39. A free program is Paint Studio Lite. Download it from www.webattack.com/get/paintstudio.shtml.
Thumbnails and Galleries GIF vs. JPG There are two common file formats for Web graphics: GIF and JPG.
Many graphics fall somewhere in between. In these cases it pays to experiment to find the format that gives the best quality for the lowest pixels.
Save your original Susan Ives is a former president of Alamo PC. She archives these columns on her Web site, www.susanives.com/lazy. If you visit, you can cut-and-paste the code instead of retyping it from the magazine - the ultimate in lazy Webmastering! ![]() |