|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-06 10:08 UTC] pajoye@php.net
[2004-12-07 10:15 UTC] mars at talash dot net
[2004-12-07 13:13 UTC] mars at talash dot net
[2004-12-07 13:17 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 03:00:01 2025 UTC |
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.