title: PHP Image Merge with Photo Frame
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4419383/how-can-i-merge-3-images-into-1-image-via-php">How can I merge 3 images into 1 image via PHP?</a>  </p>
  </blockquote>
  
  
  
  <p>How do I merge a frame and a photo into specific location on the frame? I have the following code but it just do weird such that the photo has to be as big as the frame in order to merge them. Any solution aside or mistakes perhaps from what I have done? Much appreciate for all the responses.</p>
  
  <pre><code>$image = imagecreatefromjpeg($me);
  
  $frame = imagecreatefrompng('HorizontalFrame.png');
  
  
  
  imagealphablending($frame, true);
  
  imagesavealpha($frame, true);
  
  imagecopy($image, $frame, 0, 0, 0, 0, 325, 276);
  
  imagepng($image, 'image_4.png');
  </code></pre>