Jul 30,  PST

The PNG-24 Image Format & 3 Ways You Can Use It
Written by: Haily | Learn how you can use this image format to achieve various creative and simple web design effects.
 Facebook Google Buzz Mxx Digg StumbleUpon  

Introduction to the Format

What's unique to this format is its support of alpha transparency. PNG-24 (aka 24 bit PNG) images, like GIF images, support transparent pixels, but unlike GIF images, PNG-24 images support pixels with various levels of transparency. This means that these such images support certain effects such as shadows, glows, and varied transparencies. Here's a comparison of the transparency options provided by the major image formats:

PNG-24

PNG-8

GIF

JPEG
Learn More: Learn more about how the major image formats differ and when to use which one.

How to Save an Image as PNG-24 in Adobe Photoshop

In Photoshop, you can save an image as PNG-24 by going to File > Save for Web & Devices and selecting PNG-24 under Format.
Under the 'File' menu, select 'Save for Web & Devices'

1) Images and Icons

You can also use the format for regular images and icons throughout a website. Of course, it really only to be flashy that one would use this. Like anything flashy, be careful not to use it excessively. An example would be our site preview icons that we sometimes use in our articles, like the one below, but you can also use it for much smaller images as well as for different effects, not just necessarily glows or shadows.
ShareThis

2) Semi-transparent backgrounds

One simple technique would be to create a 1x1px image with a single pixel of any color at a certain level of transparency. Then you can set this image as the background of a content module. Apply this type of background to a content box in a page that has an ornate full page background, and you could prodcue an effect very similar to what YouTube profiles allow for customization:

Preview Image

While it looks cool, be sure not to over do it. For a website layout, the above example would definitely be over doing it, but in YouTube's case, you wouldn't expect such high design standards for a profile design anyway. Also keep the level of transparency low. Keeping the text legible is extremely important. Lastly, this is a great alternative to using CSS to change the transparency of the entire content box (including the text). This simple technique that will do it only for the background.

3) Overlayed Text

You can also use the PNG-24 image format to provide a semi-transparent text background for text placed over an image. We use this technique for our homepage news updates.


If you are interested in how I set this up, it's available as an HTML/CSS Script.

Important Tip

Lastly, one should also note the format is supported by the latest version of the major web browsers, but it's a relatively new format that you may still get an occasional visitor without support for 24-bit PNG images. When that occurs, the image is simply displayed with a default background color behind transparent or semi-transparent pixels, usually gray.

 Facebook Google Buzz Mxx Digg StumbleUpon  

| Written by: Haily | Added: Mar 19 2010 | Last Modified: Mar 20 2010 | Views: 2,133 | (Log in to rate) |

Member Comments

Zaphiie of roguecity.netMarch 20 2010, 2:24 am PST - Karma: 0 - Quote - Link -
5/5
I already knew this, but good article all the same. I can think of lots of people who need to use this (n00bish people, no-one on IC)
Jenny of windymill.skyne...March 20 2010, 8:11 am PST - Karma: 0 - Quote - Link -
4/5
Great article as usual Haily! I tried to fix the "learn more" link (you put the wrong article URL) but it isn't saving.  
Haily of icecaves.netMarch 20 2010, 9:13 am PST - Karma: 0 - Quote - Link -
Thanks, I've fixed it.

You are not currently logged into your IceCaves account. Log in?

Username: Password: | Create an account 

If you would prefer, you can post as a guest below:

Name:
Email: (required; for identification purposes; will not be published)
Site URL: (optional)
Rate:You must log in in order to rate.
Post:
BBCode?

Smilies:
Human Check:

Username:

Password:


FigmintHeartdrops

The IceCaves.net Topsites


Neo Crave | Enchant Me Not | FGN-Guild.com | Rabidish | Unloadeed | Blue Stapler | Moonwalked.net | RockyRoadRules | KeliJo.net | Daily Neopets | RainbowBliss | Tugboat | Guildpets | NeoWishes | Neo Nutters | Neoeditor | Gamexe.net | Dash of Color | Figmint | Hearted Kind | Darkgirl's Life | Neo-Richies | Geeks' Planet | Skyline Designs