#23482 [Opn->Bgs]: Wrong value returned from imageColorTransparent()
| From: | derick@php.net | Date: | Mon, 05 May 2003 06:34:12 +0000 |
| Subject: | #23482 [Opn->Bgs]: Wrong value returned from imageColorTransparent() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39055@lists.php.net to get a copy of this message | ||
ID: 23482
Updated by: derick@php.net
Reported By: author at ninelivescomic dot com
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: Linux 2.4.20
PHP Version: 4.3.1
New Comment:
GD 1.6 doesn't support transparency, so that's the problem. Compile PHP
with --with-gd (and nothing else behind it) and it will use the
internal bundled GD which supports true color images and transparency.
Previous Comments:
------------------------------------------------------------------------
[2003-05-04 19:04:14] author at ninelivescomic dot com
Hi, I'm using php to return the transparent color of a 4-bit png image
with binary transparency. This code:
/* begin php code */
$imgBase= imageCreateFromPNG("20030429a.png");
print(imageColorTransparent($imgBase));
/* end php code */
prints -1, which I assume means "no transparent color". I'm sure there
IS a transparent color. I've tried this with both an optimized and
non-optimized palette, same results. I'm using gd library 1.6.2, and
can send the image if it helps.
------------------------------------------------------------------------
[2003-05-04 18:24:48] author at ninelivescomic dot com
Hi, I'm using php to return the color of a 4-bit png image with binary
transparency. This code:
/* begin php code */
$imgBase= imageCreateFromPNG("20030429a.png");
print(imageColorTransparent($imgBase));
/* end php code */
prints -1, which I assume means "no transparent color". I'm sure there
IS a transparant color in the image. I've tried this with both an
optimized and non-optimized palette, same results. I'm using gd library
1.6.2, and can send the image if that helps.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23482&edit=1