Thursday 28 May 2009

Merging images in php

$imgStop = imagecreatefromjpeg("AAKX001003.jpg"); /* Attempt to open */


$imgThumb = imagecreatefromjpeg("AXR001600.jpg");


imagecopy($imgThumb,$imgStop,0,450,0,0,480,50);


header("Content-type: image/jpeg");
imagejpeg($imgThumb);


$jothirajan_a= "IMAGE_".date('d').time().".jpg";
imagejpeg ($imgThumb,"image/".$jothirajan_a."");
imagedestroy($imgThumb);

?>

No comments:

Post a Comment