Saturday, October 4, 2008

WHICH IMAGE FORMAT IS BETTER FOR OPTIMIZED WEBSITE?

Unless you're bent on evoking that retro-fly ARCHIE or GOPHER feel, you're probably going to be using some images on your pages. Just follow a few simple guidelines as you generate your images, and your pages will download in record time.

To begin with, decide whether a given image ought to be a GIF, JPEG, or PNG. This may seem elementary, but it's a mistake that's still slowing down a good percentage of web pages out there.

GIF is the oldest and most compatible file format for pictures on the web perfectly suited for smaller graphics that need to look crisp and clean, but don't need more than 256 colors. GIFs can also be saved with one "transparent color," allowing them to have irregularly shaped borders. Simple company logos, icons, and navigation buttons are good examples of graphics that should be saved in GIF format.

Now, PNG is a lot like GIF - in fact, it was developed to be a patent-free alternative to GIF, created with the same sort of uses in mind. PNG builds on GIF's basic features, with improvements like more colors, fancy multilevel transparency (ideal for delicate drop-shadow effects), even gamma-correction, which ensures that colors look the same on Mac, Windows, and Linux computers. Best of all, not only are PNGs just as good as GIFs in almost every way, but PNGs use better file compression so they're smaller files which load more quickly.

In short, PNG is an excellent substitute for GIF, built to handle the same types of graphics (logos, icons, irregularly-shaped items, et cetera) better and faster. There's just one BIG drawback:a tiny, tiny percentage of browsers won't display PNGs at all! And, because of this, hardly anybody uses PNGs yet.

So should you risk stepping up to PNG just to make your pages faster? Well, probably, "Yeah!"

Shajed Zaman

+8801553466670


No comments: