Transparent gif/black background? <p>I have the following, it works except the gif is suppose to be transparent and it is creating a black background, if I change all the (imagesavealpha, etc) stuff to the $container then it created a transparent background for the text I add to this image. How would I go about getting rid of the black background? Basically this is a signature type image. I write stuff too, which I don't think you need to see.</p> <pre><code> $im = imagecreatefromgif("bg.gif"); $container = imagecreatetruecolor(400, 160); imagesavealpha($im, true); imagealphablending($im, false); $trans_colour = imagecolorallocatealpha($im, 0, 0, 0, 127); $w = imagecolorallocate($container, 255, 255, 255); imagefill($im, 0, 0, $trans_colour); imagecopymerge($container, $im, 0, 0, 0, 0, 460, 180, 100); </code></pre>