<?php
header("Content-type: image/jpeg");
$insertfile = imagecreatefromjpeg('watermark.JPG');
$insertfile_width = imagesx($insertfile);
$insertfile_height = imagesy($insertfile);
$newimage = imagecreatetruecolor($insertfile_width, $insertfile_height);
$newimage = imagecreatefromjpeg($_GET['imgsrc']);
$size = getimagesize($_GET['imgsrc']);
$dest_x = $size[0] - $insertfile_width - 0;
$dest_y = $size[1] - $insertfile_height - 0;
imagecopymerge($newimage, $insertfile,$dest_x,$dest_y,0,0,$insertfile_width,$insertfile_height,100);
imagejpeg($newimage);
imagedestroy($newimage);
imagedestroy($insertfile);
?>
the above code seams to be loosing a bit of quality on the images when using it.
Any reason why?
David