![]() |
|||||||||||||||||||
|
| Basic: Working with Images TutorialAmong the greatest challenges in Web design are image creation and manipulation. In this tutorial we will tackle the job of working with the two primary Web image file types: .gif and .jpeg or .jpg for short. PNG Files Gif File Format The Gif or Graphics Interchange File format is owned by Compuserve and is actually copyrighted, but as long as you use software that has an agreement with Compuserve (such as PhotoShop) then you are ok to use the format. The GIF file format is ideal for images with large areas of color, flat color shapes and text. You can also create images with transparency and multiple frames (animations). Gifs are limited to 256 colors or 8 bit color so they are not ideal for photographs or gradients with lots of colors. They also don't do well on images that are using alpha transparency, for example, you have an image with a few colors in it and you have a background color in a layer beneath it. Let's say you want to use that image as a background image for a table cell with text on top of it; you would have to make the top layer transparent to make sure that the text you place above it will be readable. An image like this would be much, much larger as a gif image than a comparable jpeg image. See the examples following file formats to see for yourself. In addition, Gif files also tend to be larger than jpeg files if there is a lot of color in the image, while jpeg images tend to be larger than gif images if there are a lot of straight edges or areas of flat colros in the image such as with text or images converted to jpeg from vector files. Vector Images JPEG File Format The JPEG or Joint Photographic Experts Group file format is not copyrighted and is the most widely used, traded and distributed file format in history. There are literally trillions of them out there in cyberspace and on people's computers and digital cameras (the primary file format used by digital cameras). Jpeg images are limited to 16.7 million colors so they are ideal for photographs. Currently Jpegs don't support transparency or animation (unless you use JavaScript with Jpeg images such as in a slide show). Jpegs use a compression algorithm to remove redundant pixel (picture element) data by comparing pixels with neighboring pixels which results in a smaller image. The greater the compression you apply to the image the smaller the image becomes. Since this compression is lossy compression it looses information and therefore looses quality. Gifs also have lossy compression available in higher end image editors like PhotoShop, but the compression isn't very effective and doesn't gain much in the way of file size reduction plus you loose a lot of quality since the compression introduces streaks to the image. You should avoid compressing Jpeg images beyond 40% in PhotoShop since pixelation and excessive blurring will result. See the following images to make a comparison, the images on the left are Gifs while the images on the right are Jpegs:
Breaking the Rules This tutorial is designed to give you some rules to creating images for the Web by they are more like guidelines, rules are meant to be broken and it is no more true than with image optimization. For every image that fits the rules there are lots of images that don't fit the rules so be sure to check the file sizes out when you export for the Web. Web Site Font Type Whenever possible, always use actual text (like the text you see here) for Web site content. It loads instantly (you may have noticed it was the first thing that loaded on this page) and search engines can read the text as well. Do not use text you generated in an image editor, it takes longer to dowload the image and it's just unnessary. But since there are fewer than a 1/2 dozen Web-safe fonts available, there are lots of situations where you will want to emulate a special font used in a logo or heading. It is best to use Gif format for this whenever possible. When you are confronted with a mixed image in PhotoShop, such as text on top of a photograph, then you should use the Jpeg format whenever possible, chances are the image will be smaller and of a higher quality. If you are breaking up a Web interface into smaller pieces such as buttons and a header, you should pay close attention to the sizes of the slices when you export them. To learn more about sliceing up images in PhotoShop see our Intermediate Interface Development tutorial. Tutorials For more details about working with images in Photoshop choose one of the following tutorials:
|
Home | Information | Web Log | Tutorials | Gallery | Contact |
|
|||||||||||||||||
© YouCanLearnWebPageDesign.com 2004-2005, All Rights Reserved - Site Designed, Owned & Operated by: McKenzie Creations |
|||||||||||||||||||

