#21624 [Opn]: no transparent Colors in PNG's with Opera 6/7
| From: | rasmus@php.net | Date: | Tue, 14 Jan 2003 00:15:53 +0000 |
| Subject: | #21624 [Opn]: no transparent Colors in PNG's with Opera 6/7 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29945@lists.php.net to get a copy of this message | ||
ID: 21624
Updated by: rasmus@php.net
Reported By: Jones@partykel.de
Status: Open
Bug Type: GD related
Operating System: RedHat
PHP Version: 4.3.0
New Comment:
I guess this is a different problem then than the one described by
Steven Brown.
Previous Comments:
------------------------------------------------------------------------
[2003-01-13 18:13:18] iliaa@php.net
It was my fault libpng 1.2.5 didn't work (header confusion). Once I
clean the headers up the code once again worked properly. The only
browser with which I can duplicate the problem is Netscape 4.7 on
Linux.
------------------------------------------------------------------------
[2003-01-13 18:02:26] Jones@partykel.de
The patch doesn't fix this problem :(
I changed the code and reconfigured/-compiled, but the example still
only works correct in Mozilla.
I think the best way would be to use an older version of libpng, e.g.
version 1.0.15 from http://www.libpng.org/pub/png/libpng.html,
right?
------------------------------------------------------------------------
[2003-01-13 17:54:17] iliaa@php.net
The example script works perfectly with: Konqueror 3.0, IE 6.0, Mozilla
1.3a, IE6 and Opera 6.02 (Linux). I am using bundled GD with libpng
1.2.0.
Once I compiled libpng 1.2.5 and tried running the same script the
image no longer worked in any browser.
------------------------------------------------------------------------
[2003-01-13 17:26:14] rasmus@php.net
Sure, but "most other browsers" make up a very very small percentage of
what people use.
Anyway, a potential patch for this was posted a couple of weeks ago.
Try the code referenced in the article below and let us know if it
fixes it:
http://news.php.net/article.php?group=php.dev&article=93058
------------------------------------------------------------------------
[2003-01-13 17:23:41] Jones@partykel.de
iliaa:
<?
header('Content-type: image/png');
$Image = imagecreate(300,150);
$Body = imagecolorallocate($Image,222,222,222);
$Char = imagecolorallocate($Image,10,36,106);
imagecolortransparent($Image,$Char);
imagechar($Image,5,100,50,"P",$Char);
imagepng($Image);
?>
rasmus: yeah but I think this problem perhaps only DOESN'T appear with
IE & Mozilla but with most other browsers...
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21624
--
Edit this bug report at http://bugs.php.net/?id=21624&edit=1