This example shows how to merge images in php gd.
This example shows how to merge images in php gd.<?php
$backgroundSource = "merge.jpg";
$feedBurnerStatsSource = "images.jpg";
$outputImage = imagecreatefromjpeg($backgroundSource);
$feedBurnerStats = imagecreatefromjpeg($feedBurnerStatsSource);
$feedBurnerStatsX = imagesx($feedBurnerStats);
$feedBurnerStatsY = imagesy($feedBurnerStats);
imagecopymerge($outputImage,$feedBurnerStats,156,50,0,0,$feedBurnerStatsX,$feedBurnerStatsY,100);
header('Content-type: image/jpeg');
imagejpeg($outputImage);
imagedestroy($outputImage);
?>
After running the program you will get the following output