TRANSPARENCY ON THE WEB


Every graphic you create for screen display in Photoshop and ImageReady is rectangular, and generally is landscape rather than portrait view. If you want the image to appear to be another shape, perhaps circular, or an irregular object with no background showing, you must make parts of the rectangle transparent. The pixels will still be there; they'll just be invisible. If you want the image to fade to the background or appear with a translucent shadow, you need partially transparent pixels. When each pixel is either completely opaque or completely transparent, the transparency is said to be hard edged. Images that have partially opaque pixels are said to have variable transparency or to fade.

Remember that, with the exception of SVG, all graphics are displayed in a web browser window at 100% zoompixel for pixelonscreen. Always preview your graphics at 100%.


The key to transparency in web graphics is understanding the capabilitiesand limitationsof the web-compatible file formats:

  • GIF: Create images with hard-edged transparency and save them as GIF. The file format does not support variable transparency.

  • JPEG: JPEG does not support transparency.

  • PNG-8: Photoshop handles hard-edged transparency automatically in PNG-8create the image on a transparent background and save it as PNG-8. Variable transparency is simulated in PNG-8 with dithering.

  • PNG-24: Both hard-edged and variable transparency are supported natively by PNG-24.

In Figure 12.1, an image using both hard-edged and variable transparency is shown in the three web-related image transparency formats.

Figure 12.1. Clockwise, starting from the upper left, the images are Original, GIF, PNG-24, and PNG-8.





Special Edition Using Adobe Creative Suite 2
Special Edition Using Adobe Creative Suite 2
ISBN: 0789733676
EAN: 2147483647
Year: 2005
Pages: 426
Authors: Michael Smick

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net