I've been trying to just open a png and display it, that way:
<?
header ("Content-type: image/png");
$im = imagecreatefrom png('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
imagecreatefrom png or imagepng, kills the transparency) ?
I got php 4.3.1 and the bundled GD of it.
<?
header ("Content-type: image/png");
$im = imagecreatefrom png('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
imagecreatefrom png or imagepng, kills the transparency) ?
I got php 4.3.1 and the bundled GD of it.
Comment