Wednesday, March 04, 2009

How to Create Semi-Transparent .PNG Images in Photoshop

PNG format represents an image as a two-dimensional array of colored pixels (dots). It's a raster format and not vector-based. Using PNG format frees you from patent fees but it has other advantages making it attractive as an image format. PNG compression does not lose any data and will not degrade image quality unlike JPEG. You can save a PNG file as a 48-bit color or 16-bit grayscale, image quality will not be degraded. Its gamma correction and two-dimensional interlacing are advantages over GIF. Its support of alpha channels allow variable transparency. While GIF format only supports simple transparency, a pixel can be either fully transparent or fully opaque, PNG allows up to 254 levels of partial transparency.

To create a PNG transparent file in Adobe Photoshop, go to File Menu, from File/New, set width and height to "pixels". Enter 1 for both. Click "OK". Hit CTRL-Plus keys together until your file stops getting larger at 1600% magnification. You will have a pure white background.



Add a second layer by clicking the new layer button (next to the trash can icon) which will give you Layer 1 with a grey-white checkered background.

Choose the paint bucket and "pour" black on the second layer. Finally, pull down opacity lever to 51% which will make the black layer semi-transparent. The checkered background will start showing through.



To save the file, uncheck the white background layer and save only the black layer. From File/Save As, choose .png as File type, and "none" for interlace option.

Post a Comment