|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
With the background color set, all you need to do is tell LView Pro to make that color transparent in the GIF file. You do this by choosing File, Preferences, Graphics File Formats, and clicking the GIF tab. Checking Save Transparent Color Information (GIF89a Only) ensures that LView Pro will designate your chosen background color as transparent (see Figure 5.14).
Making a Transparent PNGCreating a transparent PNG is a fairly simple matter when youre using Microsofts Image Composer. To make a transparent PNG, follow these steps:
Making an Image Fade InEven when image files are made as small as possible, it can still take a while for them to download. Initially, browsers had to load and process the entire file before it began to present the image onscreen. This meant users had to sit there staring at a blank screen for minutes at a time. Because Web-user attention spans are short, people would often give up in frustration and move on to another page instead of waiting for an image to finish downloading. Since those early days, two approaches to reducing user frustration have emerged. Both involve having an image fade in as the image data is read by the browser. The user sees a blurry, incomplete image at first, but then the image quality improves as more data is read in. The key thing for users is that they immediately see an approximation to the finished image on their screens. This keeps them engaged and makes it less likely that they will move on to another page. The two approaches to fading an image on to a page are actually variations on the same idea, modified for different storage formats. In each case, the image data is not stored in top-to-bottom order. Instead, the image data is reordered so that adjacent rows of pixel information are no longer stored contiguously in the file. As the browser reads down the file, it places the rows of noncontiguous data up on the screen. The result is an incomplete image that fills itself in as the rest of the image data is read. A GIF stored in this way is called an interlaced GIF. The same idea applied to a JPEG file yields a progressive JPEG or p-JPEG.
Making Interlaced GIFsCreating an interlaced GIF is a simple matter with LView Pro. To instruct LView Pro to save a GIF in interlaced form, select File, Preferences, Graphics File Formats, and then click the GIF tab (refer to Figure 5.14). Checking the Use Interlaced Format box will do the trick. To deactivate saving in the interlaced format, just uncheck the box. Progressive JPEGsP-JPEGs are relatively new, but LView Pro is current enough to have the capability to help you make them. To activate saving in a progressive JPEG format, choose File, Preferences, Graphics File Formats, and then click the JPG tab. Check the Use Progressive JPEG Compression Format box, and youre ready to go (see Figure 5.16).
Creating Animated GIFsOne of the biggest crazes to hit the Web in the past year is doing animations with animated GIFs instead of relying on a dynamic document technique such as server push or client pull. The irony is that animated GIFs have been around since 1989at least in theory. The GIF89a standard has always supported multiple images stored in the same GIF file, but, until recently, no one caught on that you can do Web animations this way.
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |