
Web GraphicsFile FormatsThe two most common graphic file formats for the Web are GIF files and JPEG files. Browsers and most popular Web graphics programs support both these file formats. There is increasing browser support of a third graphic file format, the PNG file. This format is a great addition to the current graphic file formats. It's the native file format for Macromedia Fireworks. PNGs with no transparency display correctly in all current browsers. But...one of the really wonderful attributes that .PNG has is *variable transparency. *A note about the variable transparency option in a PNG. It displays correctly in most modern browsers with one big exception: IE.5.5+ and IE6 on the PC. If you need variable transparency in your PNG, there is a style to include in your css that points to an external script file to make .pngs with variable transparency display correctly in IE5.5+ and IE.6 on the pc, but it isn't a neat solution. Until IE.5.5+ and IE6 for the pc upgrades, this is one working solution we've found. PNG transparency for IE on pc. Which file format is better? It depends on the nature of the image. The table below summarizes the features of the different file formats and some of their advantages and disadvantages.
Below are some examples of a photo and a graphic saved in the three file formats. In each case, I saved it at the minimum of what looked okay. As you can see, JPG works best for photos, GIF works best for simple graphics. PNG can be smaller than a GIF, I'd recommend just looking at the image in the different formats and going with the file format that works the best with the lowest file size for the image. If you have a graphic with transparency in it, then your choices are using a gif or one of the pngs. For more information about transparency, go to the transparency page of this section.
|