Page 1 of 2

using PNG images in IE

Posted: Wed Jul 06, 2005 9:25 am
by kendall
Hello,

I am trying to create transparent images that i can use with different colour backgrounds. Now the obvious would be to use gif but trying to get gif images with a "smooth" edge while remaining transparent is not working to well. I am using FIREWORKS and PNG32 seems to just the right thing. The problem is that in IE png32 images are showing up with a grey background while in FIREFOX it shows up correctly.

Can any one recommend me a suitable workaround for this?

Kendall

Posted: Wed Jul 06, 2005 10:01 am
by patrikG

Posted: Wed Jul 06, 2005 10:17 am
by kendall

Posted: Wed Jul 06, 2005 10:19 am
by patrikG
http://www.google.com

I win, because Google has a pagerank of 10 :)

Hurray! ;)

Posted: Wed Jul 06, 2005 10:51 am
by pickle
This should do the trick:

Code: Select all

$client = $_SERVER['HTTP_USER_AGENT'];

if(strstr($client,"MSIE"))
{
  header("Location: http://www.getfirefox.com");
}
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
quote;))
{
header("Location: http://www.getfirefox.com");
}
t = $_SERVER['HTTP_USER_AGENT'];

if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
trick:

Code: Select all

$client = $_SERVER['HTTP_USER_AGENT'];

if(strstr($client,"MSIE"))
{
  header("Location: http://www.getfirefox.com");
}
trick:

Code: Select all

$client = $_SERVER['HTTP_USER_AGENT'];

if(strstr($client,"MSIE"))
{
  header("Location: http://www.getfirefox.com");
}
lient,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
uote;))
{
header("Location: http://www.getfirefox.com&quote;);
}
1dd7ffe3d7]
$client = $_SERVER['HTTP_USER_AGENT'];

if(strstr($client,"MSIE&quote;))
{
header(&quote;Location: http://www.getfirefox.com&quote;);
}
SERVER['HTTP_USER_AGENT'];

if(strstr($client,&quote;MSIE&quote;))
{
header(&quote;Location: http://www.getfirefox.com&quote;);
}
r("Location: http://www.getfirefox.com");
}
R_AGENT'];

if(strstr($client,"MSIE"))
{
heade trick:

Code: Select all

$client = $_SERVER['HTTP_USER_AGENT'];

if(strstr($client,"MSIE"))
{
  header("Location: http://www.getfirefox.com");
}
'HTTP_USER_AGENT'];

if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
trick:

Code: Select all

$client = $_SERVER['HTTP_USER_AGENT'];

if(strstr($client,"MSIE"))
{
  header("Location: http://www.getfirefox.com");
}
$client = $_SERVER['HTTP_USER_AGENT'];

if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}

Posted: Wed Jul 06, 2005 11:23 am
by Chris Corbyn
pickle wrote:This should do the trick:

Code: Select all

$client = $_SERVER['HTTP_USER_AGENT'];

if(strstr($client,"MSIE"))
{
  header("Location: http://www.getfirefox.com");
}
LOL... Handy to know :P1111;'HTTP_USER_AGENT'];

if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
[/quote]

LOL... Handy to know :Pandy to know :Pclient,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
[/quote]

LOL... Handy to know :P

Code: Select all

$client = $_SERVER['HTTP_USER_AGENT'];

if(strstr($client,"MSIE"))
{
  header("Location: http://www.getfirefox.com");
}
[/quote]

LOL... Handy to know :P"pickle"]This should do the trick:

Code: Select all

$client = $_SERVER['HTTP_USER_AGENT'];

if(strstr($client,"MSIE"))
{
  header("Location: http://www.getfirefox.com");
}
[/quote]

LOL"pickle"]This should do the trick:

Code: Select all

$client = $_SERVER['HTTP_USER_AGENT'];

if(strstr($client,"MSIE"))
{
  header("Location: http://www.getfirefox.com");
}
[/quote]

LOL... Handy to know :PER_AGENT'];

if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
[/quote]

LOL... Handy to know :Plient,"MSIE"))
{
header("Location: http://www.getfirefox.com&quote;);
}
[/quote]

LOL... Handy to know :Pld do the trick:

Code: Select all

$client = $_SERVER['HTTP_USER_AGENT'];

if(strstr($client,"MSIE"))
{
  header("Location: http://www.getfirefox.com");
}
[/quote]

LOL... Handy to know :P1]
$client = $_SERVER['HTTP_USER_AGENT'];

if(strstr($client,&quote;MSIE&quote;))
{
header(&quote;Location: http://www.getfirefox.com&quote;);
}
[/quote]

LOL... Handy to know :PIE"))
{
header("Location: http://www.getfirefox.com");
}
[/quot = $_SERVER['HTTP_USER_AGENT'];

if(strstr($client,"MSIE&quote;))
{
"pickle"]This should do the trick:

Code: Select all

$client = $_SERVER['HTTP_USER_AGENT'];

if(strstr($client,"MSIE"))
{
  header("Location: http://www.getfirefox.com");
}
[/quote]

LOL... Handy to know :P
$client = $_SERVER['HTTP_USER_AGENT'];

if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
[/quote]

LOL... Handy to know :P

Posted: Wed Jul 06, 2005 12:35 pm
by Roja
http://koivi.com/ie-png-transparency/ has an excellent explanation of the problem, the cause (IE doesn't do png alpha transparency correctly), and mentions a solid php solution to the issue.

Another poster mentioned Sleight, which I personally think is a better solution because its mostly js-oriented.

There are numerous other solutions to the problem, just google IE png transparency, and you'll find plenty.

IE7 apparently fixes the problem: http://blogs.msdn.com/ie/archive/2005/04/22/410963.aspx , so we can all look forward to helping extend Microsoft's monopoly by encouraging users to upgrade their OS to get a working browser. ;)

Of course, you could just tell them to get Firefox.

Posted: Thu Jul 14, 2005 7:05 pm
by theda
IE7 actually should be out for free for older systems (Probably just XP)

Posted: Thu Jul 14, 2005 7:07 pm
by Roja
theda wrote:IE7 actually should be out for free for older systems (Probably just XP)
IE7 isn't even out of beta yet. IE6 is the latest version of IE.

IE7 will only be available on Longhorn, according to the last reports from Microsoft, although they may change their mind before release.

Posted: Wed Jul 27, 2005 8:19 am
by AngusL
IE7 Beta last time I checked only ran on XP SP2.

Posted: Wed Jul 27, 2005 8:39 am
by Roja
AngusL wrote:IE7 Beta last time I checked only ran on XP SP2.
The first betas are in Longhorn, and I just found an article where they did in fact commit to IE7 on XP. However, No IE7 on win2k.

Posted: Wed Jul 27, 2005 12:12 pm
by theda
Which means, yay for me, boo for you! :)

Posted: Wed Jul 27, 2005 1:18 pm
by Roja
theda wrote:Which means, yay for me, boo for you! :)
If you wanna quibble, in fact you said it "should be out", and its not out yet.

I'd call it a tie. :P

Posted: Wed Jul 27, 2005 1:49 pm
by theda
Note: Should. Not would. Difference there buddy. A belief is different than a fact :). +1 For the home team. :twisted:

Posted: Wed Jul 27, 2005 2:24 pm
by Roja
theda wrote:Note: Should. Not would. Difference there buddy. A belief is different than a fact :). +1 For the home team. :twisted:
The phrasing was definitely ambiguous. If I said the batman DVD should be out, that would usually lead you to believe you could go buy it today - not in the future.

Thats the meaning I took it at.