From:             mars at talash dot net
Operating system: windows NT/2000
PHP version:      4.3.9
PHP Bug Type:     GD related
Bug description:  problem in image transparancy

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 bug report at http://bugs.php.net/?id=30991&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30991&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=30991&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=30991&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30991&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30991&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30991&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30991&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30991&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30991&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30991&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=30991&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=30991&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30991&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30991&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30991&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30991&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30991&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30991&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30991&r=mysqlcfg

Reply via email to