title: Join Multiple transparent png image in Single image into php
body: <p>Friends i want to generate one png image from multiple transparent PNG image but the issue is that i can generate only last image</p>
  
  <p>Both images can not combine.</p>
  
  <p>My code is given below</p>
  
  <pre><code>$x = 363;
  $y = 267;
  
  $im_dest = imagecreatetruecolor ($x, $y);
  imagealphablending($im_dest, false);
  
  $im = imagecreatefrompng('2.png');
  $im1 = imagecreatefrompng('1.png');
  
  imagecopy($im_dest, $im1, 0, 0, 0, 0, $x, $y);
  imagecopy($im_dest, $im, 0, 0, 0, 0, $x, $y);
  
  imagesavealpha($im_dest, true);
  imagepng($im_dest, 'small_redfade.png');
  </code></pre>
  
  <p>These are the images which i am using to join in single image</p>
  
  <p><a href="http://s11.postimg.org/h6lui7yjn/image.png" rel="nofollow">http://s11.postimg.org/h6lui7yjn/image.png</a></p>
  
  <p><a href="http://s21.postimg.org/o7zdnwcnb/image.png" rel="nofollow">http://s21.postimg.org/o7zdnwcnb/image.png</a></p>