Hi Guys!
I am trying to custom signature images, a generated one as such on a form submit. At the moment I am still doing the images although I wish to add an image into the signature and I am not too sure how I will do that.
I have attached my signature code below:
<?php
header("Content-type: image/png");
$image = imagecreatefrompng("../imgs/bisig1.png");
$other = imagecreatefrompng("../imgs/avatar.png");
//imagecolorallocate($image, R, G, B) in HEX values
$font_black = imagecolorallocate($image, 2, 1, 8);
$font_blue = imagecolorallocate($image, 25, 0, 255);
$List = "name.txt";
$string = "Account Name";
$string2 = "<img src='$other'>";
//($image, fontsize, rightindent, downindent, data, txtcolour)
imagestring($image, 3, 12, 3, "T17", $font_blue);
imagestring($image, 1, 86, 6, "SOTW", $font_black);
imagestring($image, 1, 110, 6, $string, $font_black);
imagestring($image, 4, 110, 50, $other, $font_blue);
imagepng($image);
imagedestroy($image);
imagepng($other);
imagedestroy($other);
?>
This code throws the error:
Resource id #4
Thank you for your help!