Ask a Question related to PHP Development, Design and Development.
-
Cecile Muller #1
Png transparency
I've been trying to just open a png and display it, that way:
<?
header ("Content-type: image/png");
$im = imagecreatefrompng('empty.png');
imagepng($im);
?>
But the transparency is not kept. I did try in netscape too,
but it's visible even in explorer, when comparing how the
direct image looks and how it looks when thru the script, that
transparency was killed.
Ideas (on how to solve or at least which, from
imagecreatefrompng or imagepng, kills the transparency) ?
I got php 4.3.1 and the bundled GD of it.
Cecile Muller Guest
-
What about transparency am I not getting?
This is sort of like What about NO do you not understand? But Nancy T said this was the place to ask, so I am. When I use the word transparency, I... -
Transparency
Hello, appologies if this has been asked, I couldn't find it. How do I change a block of colour in an image to be transparent ? I have an animated... -
Transparency in 3D
Hi I am new with Shockwave 3D and I am interested to know if there is a way to make the background of a 3D scene transparent. I might need to... -
transparency effect???
Hello, I would like to know how to create transparency effect in flash? I have no idea how to put a image looks transparent with another image... -
Need help with transparency
How do I make the white canvas of the logo transparent while leaving the text "Focus" white? http://www.teamfocusinc.com/new_site/index.htm ... -
Justin Koivisto #2
Re: Png transparency
Cecile Muller wrote:
If it worked in Netscape, and not explorer, that's normal. However,> I've been trying to just open a png and display it, that way:
>
> <?
> header ("Content-type: image/png");
> $im = imagecreatefrompng('empty.png');
> imagepng($im);
> ?>
>
> But the transparency is not kept. I did try in netscape too,
> but it's visible even in explorer, when comparing how the
> direct image looks and how it looks when thru the script, that
> transparency was killed.
>
> Ideas (on how to solve or at least which, from
> imagecreatefrompng or imagepng, kills the transparency) ?
> I got php 4.3.1 and the bundled GD of it.
there is a workaround you can use in the image tag:
[url]http://www.koivi.com/ie-png-transparency/[/url]
HTH
--
Justin Koivisto - [email]spam@koivi.com[/email]
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
Justin Koivisto Guest
-
Pat Scott #3
Re: Png transparency
I had the same problem. If you create the .png as a 'true color' graphic,
it will not be transparent. When I created the same graphic using a '256
color' palatte, transparency worked fine.
Pat Scott
"Cecile Muller" <spam@wildpeaks.com> wrote in message
news:aff31ac6.0308131736.7b1c0e56@posting.google.c om...> I've been trying to just open a png and display it, that way:
>
> <?
> header ("Content-type: image/png");
> $im = imagecreatefrompng('empty.png');
> imagepng($im);
> ?>
>
> But the transparency is not kept. I did try in netscape too,
> but it's visible even in explorer, when comparing how the
> direct image looks and how it looks when thru the script, that
> transparency was killed.
>
> Ideas (on how to solve or at least which, from
> imagecreatefrompng or imagepng, kills the transparency) ?
> I got php 4.3.1 and the bundled GD of it.
Pat Scott Guest



Reply With Quote

