Hello.I've uploaded a small image which I want to place at a specific location into a larger image.The problem is the imagecopymerge function doesn't seem to be doing anything.I echoed it and it returned true which indicates it is working except it's not doing anything. And theres no errors either. Once again this doofus is clueless. Thank you <html><body><br><br><br> <?php $thisimage=$_POST["initimage"]; echo("<center>"); echo("<IMG SRC='uploads/$thisimage'>"); echo("</center>"); list($width, $height, $type, $attr) = getimagesize("uploads/".$thisimage); echo("<br><center>"); $size=$height * $width; echo("Pixal size : "); echo($size); echo("</center><br>"); $xpos=$_POST['mpos_x']; $ypos=$_POST['mpos_y']; echo($xpos); echo("<br>"); echo($ypos); $image3=ImageCreateFromJpeg('uploads/'.$thisimage); $image2=ImageCreateFromJpeg('uploads/grid.jpg'); imagecopymerge($image2,$image3,$xpos,$ypos,0,0, $width,$height,100); echo("<center>"); echo("<IMG SRC='uploads/grid.jpg'>"); echo("</center>"); ?> </body></html> Code (markup):
You're not actually creating the image. imagejpeg($image2, 'uploads/grid.jpg'); PHP: Add this under imagecopymerge().
Thanks.That works.I asumed it would of created the image by default. Now I know.Now I have to find another problem.This doofus is going for three in a row.