ID: 21624
Updated by: rasmus@php.net
Reported By: Jones@partykel.de
-Status: Bogus
+Status: Open
Bug Type: GD related
Operating System: RedHat
PHP Version: 4.3.0
New Comment:
No, because the very same script works fine with previous versions of
PHP. Just because a browser is able to decypher the broken images we
generate doesn't mean we are doing it right.
Previous Comments:
------------------------------------------------------------------------
[2003-01-13 16:39:10] iliaa@php.net
PHP generates the very same image for every browser. If it works in 2
browsers and does not work in one, is it not reasonable to assume that
the browser where the image does not work is the one at fault?
------------------------------------------------------------------------
[2003-01-13 16:38:53] rasmus@php.net
It is a PHP issue. A patch was posted to php-dev a while ago, but
nobody has had a chance to look at it yet.
------------------------------------------------------------------------
[2003-01-13 16:36:56] Jones@partykel.de
Since Version 6.0 Beta 1 Opera fully supports alpha transparency:
http://www.opera.com/windows/changelogs/600b1/index.dml
So because it worked in previous PHP/GD-versions, I think it is a PHP
issue
------------------------------------------------------------------------
[2003-01-13 16:20:04] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Given that the behaviour is incositent across browsers and I cannot
replicate the described problem in Mozilla or IE 6.0 I'd say this is a
broser and not a PHP issue. Perpahps, Opera cannot handle alpha
transparency, which is what is causing the problem, this particular
type of transparency would not have been avaliable in older GD library.
------------------------------------------------------------------------
[2003-01-13 15:33:23] Jones@partykel.de
If I generate a PNG with PHP 4.3.0, GD and libpng 1.2.5 and try to use
a transparent color with imagecolortransparent(), that doesn't work in
Opera (I've tested with Versions 6 & 7).
Sometimes simply nothing happens and sometimes another color is set as
transparent.
In Mozilla, everything works fine.
With the previous Version of PHP and GD 1.8.4 and libpng 1.2.4 it
worked in Opera.
My configure line:
./configure --with-apxs=/usr/local/apache/bin/apxs
--with-freetype-dir=/usr/local/include
--with-jpeg-dir=/var/install/php/jpeg-6b --with-png-dir
--enable-track-vars --enable-ftp --with-zlib --with-gd --with-sockets
--enable-sockets --with-sysvshm --with-sysvsem --disable-debug
--with-mysql=/usr
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21624&edit=1