#42201 [Opn->Bgs]: imagecolortransparent

From: Date: Fri, 03 Aug 2007 12:47:43 +0000
Subject: #42201 [Opn->Bgs]: imagecolortransparent
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-115722@lists.php.net to get a copy of this message
ID: 42201 Updated by: pajoye@php.net 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

« previous php.bugs (#115722) next »