Been struggling with this for an hour, and am completely stumped.
$light and $dark are being set ok, but the problem is the transparency...
I would expect the colour specified as imagecolorallocate ($im, 145, 168, 249) to be see-through, so that it is effectively not there, for some reason, however, it is making the black bits of my image see through, any ideas?
$overlay=imagecreatefrompng("build/h1left.png");
$file="../images/main/$theme/h1left.png";
$im = imagecreate (91, 38);
imagecolortransparent($overlay,imagecolorallocate ($im, 145, 168, 249));
$dark = imagecolorallocate ($im, $row["darkr"], $row["darkg"], $row["darkb"]);
$light = imagecolorallocate ($im, $row["lightr"], $row["lightg"], $row["lightb"]);
imagefill ($im, 0, 0, $light);
imagecopy($im,$overlay,0,0,0,0,91,38);
imagepng ($im,$file);
imagedestroy ($im);
echo "<img src='../images/main/$theme/h1left.png'><br><br>";
many thanks,
ucbones