your how-to site for community journalism

Present It! Photography and Graphics

Getting Familiar with Web Graphics

Only two image formats — GIFs and JPEGs — can be used completely safely on the Web. Sometimes, the PNG format is also used, but is not fully supported by all Web browsers.

In converting an image file into a GIF or JPEG, some data is always lost. Usually, it’s the number of colors in the image's palette. By compressing an image and removing some of its data, you get a smaller file size and a quicker download speed.

GIF

GIF stands for Graphic Interchange Format. A GIF can use up to 256 colors and no more. You can save a GIF as a smaller and smaller file by decreasing the number of colors used in the palette. Because only 256 colors are available, the GIF compression technique is more suitable for images and graphics with fewer colors and large areas of solid color.

JPEG

JPEG (Joint Photographic Experts Group) images use thousands, even millions of colors, and are better used for photographs and images with lots of shading, gradients and blending.

All Web images — whether photographs, graphic treatments of text or illustrations —must be saved in either GIF or JPEG format. You can use any graphic editor to create those images. Some of the most common software applications are Adobe Photoshop, Adobe Photoshop Elements, Adobe Illustrator and Macromedia Fireworks. Many others are available, but these four give you a wide range of flexibility and can create Web-ready files. Throughout this discussion of photographs, we provide directions for using Adobe Photoshop to create and edit images.

Quality

Quality is determined in part by resolution. Resolution is measured by pixels, a tiny unit of measurement used by computer monitors. Did you ever notice that Web graphics don't always look great when you print them? This is because the computer screen only displays 72 pixels per inch (also referred to as dpi), whereas a good quality print image is usually around 300 dpi. So, if you try to take an image off the Web and make it larger, the quality will be poor.

If you used a higher-resolution, print-quality image on your site instead of one that is the standard 72 dpi for Web graphics, you image would look very large on your screen. In fact, it will look bigger than it would actually be when printed. So, always be aware of an image’s resolution so that you don’t accidentally create Web images much larger than you intended.

As a general rule, you should create high-quality images and then down-sample, or decrease, that quality for Web use. Creating original artwork at a higher-than-necessary resolution is useful because, in the future, you might need to enlarge it for another use or print it on a business card or brochure. For instance, you should create a high-resolution version of your logo because you can expect to use it in several different sizes and for different purposes.

For photographs, edit the photos and correct the colors at the higher resolution. Once you’re satisfied, resize the image and decrease the resolution to create a Web image.