User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Web Developers' Lounge section within the Web Development category of DaniWeb, a massive community of 391,662 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,850 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Web Developers' Lounge advertiser:
Views: 465 | Replies: 2
Reply
Join Date: Jul 2005
Posts: 55
Reputation: shmay is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
shmay shmay is offline Offline
Junior Poster in Training

PNG breaking my balls

  #1  
Apr 10th, 2008
When looking at my site through IE, my uploaded transparent PNGs always appear with a crappy background. Supposedly, from searching the web, this defect is in IE alone.

Yet, some sites have images with transparent backgrounds in IE, such as Mozilla.

How do they do this? Thank you.
Last edited by shmay : Apr 10th, 2008 at 12:26 am.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 936
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 47
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is online now Online
Posting Shark

Re: PNG breaking my balls

  #2  
Apr 10th, 2008
That image is an 8-bit per pixel PNG, and 8bpp PNGs can only contain 1 bit transparency ( a pixel is either fully opaque, or fully transparent ). With higher bpp PNGs, you're allowed to use alpha translucency ( a pixel can be 25%, 50%, 68%, etc transparent ). Microsoft IE versions have been OK with the transparency in 8bpp PNGs for some time, but not with the translucency in 32 bpp PNGs.

To solve... make sure you dont use translucency ( only transparency ), and save as 8bpp PNG to force 1-bit transparency.

See two attached images. They both work nicely on my browser ( Opera ), but I would imagine that only the 8bpp has a transparent background in IE ( especially IE6 or earlier ).
Last edited by MattEvans : Apr 10th, 2008 at 1:00 am.
Attached Images
File Type: png 8pp.png (262 Bytes, 24 views)
File Type: png 32bpp.png (499 Bytes, 25 views)
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Join Date: Jul 2007
Posts: 13
Reputation: tashakota is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
tashakota tashakota is offline Offline
Newbie Poster

Re: PNG breaking my balls

  #3  
Apr 15th, 2008
Use a gif.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Web Developers' Lounge Marketplace
Thread Tools Display Modes

Other Threads in the Web Developers' Lounge Forum

All times are GMT -4. The time now is 1:46 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC