Page 1 of 1

transparency in gaussian_dropshadow()

Posted: Tue Mar 28, 2006 4:25 am
by punknroll
hi i try to modify the gaussian_dropshadow function of the soft drop shadow example (http://www.phpgd.com/scripts.php?script=26). I want to have the background transparent. without the function is is not problem with

Code: Select all

imagecolortransparent($source, $white);
. I don't know where to place this funtion inside the gaussian_dropshadow function.

anyone ever tried this?

Posted: Tue Mar 28, 2006 4:52 am
by onion2k
I've tried it. It's tricky because the gaussian function averages the background colour of the image and changes it .. so you lose the transparency colour. At some point I'll make it do proper alpha, but for the time being I'm afraid you're stuck with a solid background.

i will try imagemagick instead

Posted: Tue Mar 28, 2006 9:17 am
by punknroll
hi again, thanx for your quick reply. now i will try to use imagemagick, because i really need a transparent background