title: how to write html on image using gd library php?
body: <p>im using IMAGETTFTEXT function in php for writing text on some images.now i want to write html tags on my image,for example IMG tag.
  i dont know how to do that!i want help plz.
  here is my code : </p>
  
  <pre><code>$font_file = 'times.ttf';
  $font_size=15;          
  $image_file= 'new.jpg'; 
  
  $image =  imagecreatefromjpeg($image_file);
  
  $font_color = imagecolorallocate($image, 0, 0, 0);
  
  imagettftext($image, $font_size, 0, 55, 30, $font_color, $font_file, "fhfghfghfghfg ");
  imagettftext($image, $font_size, 0, 600, 30, $font_color, $font_file, "aaaaaaa ");
  
  Header("Content-type: image/jpg");
  
  imagejpeg($image);
  
  imagedestroy($image); 
  </code></pre>