Merge Two images using php Gd function

by Mohan 2013-10-05 16:41:33


<h1>

<font color=#000080>Here is code for merging two Images</font>
</h1>



<?php
// Create image instances
$dest = imagecreatefromgif('php.gif');
$src = imagecreatefromgif('php.gif');

// Copy and merge
imagecopymerge($dest, $src, 10, 10, 0, 0, 100, 47, 75);

// Output and free from memory
header('Content-Type: image/gif');
imagegif($dest);

imagedestroy($dest);
imagedestroy($src);
?>

Tagged in:

595
like
0
dislike
0
mail
flag

You must LOGIN to add comments