0

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!

Edited by public-image: n/a

2
Contributors
2
Replies
5
Views
6 Years
Discussion Span
Last Post by pssubash
0

Hi,
Error on line 17...
$other variable does not exist !!!
pls put a string calue here...
It will Work

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.