title: How merge image on background png image in php
body: <p>Im using php code to merge user image on png background. Here below is code i am use.</p>
  
  <pre><code>$width = 140; 
  $height = 140; 
  $bottom_image = imagecreatefrompng("bg.png"); 
  $top_image = imagecreatefromjpeg("default.jpg"); 
  imagesavealpha($top_image, true); 
  imagealphablending($top_image, false); 
  imagecopyresampled($bottom_image, $top_image, 290, 125, 0, 0, $width,     $height, $width, $height);
  //imagecopy($bottom_image, $top_image, 290, 125, 0, 0, $width, $height); 
  header('Content-type: image/png');
  imagepng($bottom_image);
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/pfvud.png" rel="nofollow">but i got this result when i save image</a></p>
  
  <p>i want user image in round circle back.</p>