Merge images using php

by Mohan 2014-02-07 16:57:20

<h1>Merge images php</h1>

<h2><font color=#000066>Here is the code to merge two images using php</font></h2>



<?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:

874
like
0
dislike
0
mail
flag

You must LOGIN to add comments