|
|
Transparent gifsTransparent gifs are special gif images in which one or more colors have been instructed not to show and these colors are, thus, rendered transparent. The instructions of which color should be transparent are passed at the time of saving the image. The "transparent" colors are, thus, not displayed and if the image is placed on a web page, the background color of the page is shown in place of these colors. A few basics points about Gif images
Displaying Transparent gifs on web pagesWe have learnt that colors in an image can be made transparent so that the background (of the web page) shows through. This feature gaves additional power to web designers and helps us create lesser "blocky" pages. You should remember that images are always rectangular in shape i.e. they have width and height. However, by applying transparency intelligently, you can make the images look irregular in shape. Transparency is also utilized to give realism to many image efects such as drop shadows, glows etc. Making an irregular image - Applying transparency - Another example
"Big deal! I could have started with white background", you say. Transparency and image effectsLet us now look at two commonly used image effects - drop shadow and glow. Once again we start with an image created on a grey background. We then make the grey color transparent so that the background color/image is revealed. Taking our circle example (above) a little furtherSince the pale blue background of the circle image has been rendered transparent, the web page background color OR the web page background image would be displayed. This is a good point to remember. In the visual below, the image has been placed in table cells that have different backgrounds - one has a background color (pale green) while the other a background image (the wall of bricks).
Transparency and 'Halos'The previous examples displayed images made on a grey background. Grey is very close to white (our page background); infact you can barely differentiate the two, especially if your monitor is set at a high brightness.
Page contents: Transparent Gifs and how transparency is applied to Gifs that might lead to 'halo' formation. Knowing more about Gif transparency will help you create better images.
Page URL: http://www.webdevelopersnotes.com/graphics/ transparent_gifs.php3
|
|