#30991 [Opn->Bgs]: problem in image transparancy
| From: | pajoye@php.net | Date: | Mon, 06 Dec 2004 09:08:36 +0000 |
| Subject: | #30991 [Opn->Bgs]: problem in image transparancy | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-69831@lists.php.net to get a copy of this message | ||
ID: 30991
Updated by: pajoye@php.net
Reported By: mars at talash dot net
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: windows NT/2000
PHP Version: 4.3.9
-Assigned To:
+Assigned To: pajoye
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
You can use only one transparent color.
With formats that support alpha channel, use the alpha channel.
--Pierre
Previous Comments:
------------------------------------------------------------------------
[2004-12-06 05:57:27] mars at talash dot net
Description:
------------
In my php.ini file,
i enabled GD only.
ie) uncomment that one line for gd configuration
Reproduce code:
---------------
$logoImage is png image.
$image1 = ImageCreateFromPNG($logoImage);
$color=imagecolorat($image1,$mouseX,$mouseY);
imagecolortransparent($image1,$color);
ImagePNG($image1,"$logoImage");
after transparant a color in image. save that image .
what the problem is,
after that i transparent another color in that image ,last color is
only
tranperant. previous color revoke it's original place.
for example :
imagecolortransparent($image1,$color);
imagecolortransparent($image1,$color1);
imagecolortransparent($image1,$color2);
imagecolortransparent($image1,$color3);
Expected result:
----------------
after excution only that image transperant for $color3
but i want a transparent image with all four color.
what can i do?
any other functions..
Actual result:
--------------
only image with last color transparancy.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30991&edit=1