2011-07-14 14 views
1

は基本的に私が何をしようとしているすべては、私が何かをしようとするたびに、私はというエラーを取得しますが、署名の背景の上に画像が含まれています私はこの上で受ける任意の助けのために本当に感謝するでしょう。..PHP署名イメージジェネレータ

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

答えて

1

GDは、HTML($string2 = "<img src='$other'>";)ではありません、それはところであなたがproblably任意の「リソースID 4」エラーaを得ることはありません を動作しません。あなたのMIMEタイプはpngです。