PHP Signature Image Generator -



PHP Signature Image Generator -

basically trying include image on background of signature although every time seek error saying:

resource id 4

i thankful help receive on this..

<?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); ?>

gd isn't html ($string2 = "<img src='$other'>";) , won't work btw problably not "resource id 4" error mime type png.

php generator imaging

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -