Now that you've got your award winning image, you've got to put it on your page. You do so, only to find that it takes 15 minutes for you to download the thing. Later you go to see that it's 500KB large! That's just unacceptable.
And that is why you need to optimize your images. Try in every possible way to reduce the file size of the image without compromising too much quality.
There are several ways to optimize your image. First, decide which image format you want to save, GIF or JPEG. GIFs are restricted to 216 colors, while JPEGs have millions of colors. GIFs tend to be smaller. The only types of graphics that require to be saved as JPEGs are photo-quality images. Most other images can be rendered quite well in 216 colors. Of course, it's all a matter of discretion; try out both formats, and decide on the one that looks best, for the file size.
Moving on, when you save JPEGs, you will find that there is a quality option. If you are using Photoshop, there is a slider bar from 1 to 10, 10 being highest. I've found that there is not much difference between 5 and 10 in quality, while in file size there is a jump. The levels 3 to 5 are all you really need in terms of quality. The Creating Killer Sites website has a good comparison guide.
Anti-aliasing will also increase the memory. Many times, this technique is need to smoother edges. Some images don't require anti-aliasing, such as text, squares, any shape that doesn't have complex curves or angles; but almost everything needs anti-aliasing.
When dealing with GIFs, there is a process called dithering. This is the process of simulating colors by placing colors together. For example, a blue bunch of pixels next to yellow ones simulate green. Although dithering makes transisitions between colors smoother, dithering adds to the file size.
When you are creating images, start off with a lower quality value. That way, you won't be surprised when you go to optimize, and you are able to adapt the image to the quality during the creating process; that saves time and is less frustrating than going to a high quality image and trying to modify it.
Images can be a versatile tool. But versatility is not meant to be abused. Now that you've learned to restrain yourself, go on to learn about tables vs. frames as the best choice for webpage layout.
Top