ID: 42201 Updated by: [EMAIL PROTECTED] Reported By: filipe dot martins at i-senso dot com -Status: Open +Status: Bogus Bug Type: GD related Operating System: Windows XP PHP Version: 5.2.4RC1 -Assigned To: +Assigned To: pajoye New Comment:
The transparent area is not the transparent color but rgba(255,138,138,0) (here alpha is the level of opacity, 0=transparent, 255=opaque). not a bug > bogus. Previous Comments: ------------------------------------------------------------------------ [2007-08-03 12:08:47] filipe dot martins at i-senso dot com You can get the PNG here: http://www.i-senso.com/tmp/test-imagecreatefrompng.png Thanks. ------------------------------------------------------------------------ [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