Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PNG-8 Transparency

Status
Not open for further replies.

MasterKaos

Programmer
Jan 17, 2004
107
GB
Ok it is a known fact that IE5 (and above?) can't handle transparency in PNG-24 - the transparent area shows up as grey in colour.

I have had no trouble however with files i have saved as PNG-8 in Photoshop, then set a colour as transparent using image functions in PHP (server side scripting language).

However now i have come to a situation where i would like to use the feature of PNG that allows for several shades of transparency. Does PNG-8 offer this or is it only available in PNG-24?

If it is supported in PNG-8, how can i export a PSD image on a transparent backgound to a PNG-8 with multiple shades of transparency (for anti aliasing to work)?

The only way i know of exporting transparency in Photoshop is using the Export Transparent Image Wizard in "Help... Export Transparent Image". But the ETI wizard does not ask me if i want to save in PNG-8 or PNG-24 and it defaults to PNG-24.

Otherwise, if only one shade of transparency is available in PNG-8, are there any tricks for preserving anti-aliasing on images with a transparent background?

I am using Photoshop 7

----------------------------------------------------------------------------
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
 
Hmmm not getting any responses, so I'll rephrase the question - perhaps it was too long:

Does PNG-8 support multiple shades of transparency?

----------------------------------------------------------------------------
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
 
No, PNG-8 works much like a GIF(binary transparency), but ususlly smaller(though sometimes for very simple images with regular patterns I've found GIFs are still smaller).

Use the 'save for web' feature for exporting web images.


Moe: It could have been a real ugly situation, but luckily I managed to shoot him in the spine.
 
Yep, PNG-8 is just like a GIF when it comes to transparency.

And barehug is correct, if you File\Save for Web... then you can select PNG-8/PNG-24/GIF/JPEG/WBMP and choose the transparency option or not. You can also optomize the file in this dialog box.

Good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top