mort Posted September 12, 2006 Share Posted September 12, 2006 Hey allHaving some problems with imagecolortransparent()I am writing a script to copy and resize a bunch of images to thumbnails for a gallery. when it tries to make the thumbnail of a gif, the background is always black. is there anyway to make it transparent?I will post the code if needs be, but sure what am asking isnt hard. the script at the mo contains all the database encoding steps etc as well and is generally over complicatedcheers in advance :) Quote Link to comment Share on other sites More sharing options...
mainewoods Posted September 12, 2006 Share Posted September 12, 2006 use black for the color in this function: [code]imagecolortransparent ( resource image [, int color] );[/code]-if that does'nt work sample the color of the black part of the thumbnail created and get the exact RGB code of that and then plug it in the function above and it should work.http://us3.php.net/manual/en/function.imagecolortransparent.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.