#42201 [Opn]: imagecolortransparent
ID: 42201
User updated by: filipe dot martins at i-senso dot com
Reported By: filipe dot martins at i-senso dot com
Status: Open
Bug Type: GD related
Operating System: Windows XP
PHP Version: 5.2.4RC1
New Comment:
You can get the PNG here:
http://www.i-senso.com/tmp/test-imagecreatefrompng.png
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2007-08-03 12:06:50] filipe dot martins at i-senso dot com
Description:
------------
imagecolortransparent doesn't return the alpha color index though the
given PNG is transparent.
Filipe Martins
www.i-senso.com
Reproduce code:
---------------
$img = imagecreatefrompng ('test-imagecreatefrompng.png');
echo imagecolortransparent ($img);
Expected result:
----------------
The PNG is transparent, so the function shouldn't return -1.
Actual result:
--------------
It returns -1.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42201&edit=1
Thread (3 messages)