Image Creation Guide |
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||
Images are one of the most important ingredients that make up your page. Though the actual images you use will vary, there are many useful techniques you can apply to them all, making them ideally suited to the World Wide Web.
Colors & Contrast:
GIFs or JPGs:
This compression is ideal for the Web since an image can be downloaded from a server as a small compressed file, then decompressed by the browser and displayed on a Web page. JPG images use an adjustable type of compression. This allows you to decide how big the file will be by compressing the image more and more. But there is a serious trade-off if you compress a JPG image too much: loss of image detail. The more you compress a JPG image when you save it, the more detail you'll lose when the image is displayed. GIF images are also compressed, but use a type of compression whereby the image retains all of its original color and detail. Another big benefit of GIFs is the ability to set a particular color as transparent, so that the color is replaced by the Web page background when the image is displayed. The trade-off with GIF's is that you can't (directly) adjust the compression to make the GIF file smaller. Both formats are valuable for Web design, however, all you need to do is take best advantage of the features of each. When To Use JPGs:
When To Use GIFs:
The rest of this section deals exclusively with the GIF image format.
Creating Large, Colorful GIF Images That Are Small Files:
Instead of simply saving the color value for each pixel to the image file (as bitmap files are saved), in a GIF the pixels are scanned for like-colored pixels that are next to one another. For example, let's say that the value 15 causes a pixel to display the color black, and the first row of 12 pixels in your image are all black. instead of saving each of these values separately as shown below...
|