Possible Duplicate:
How can I merge 3 images into 1 image via PHP?
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.
$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');
I found the correct way with better understanding:
Credited to: DMin via
How can I merge 3 images into 1 image via PHP?