I tried everything I know for the last 3 days, but I can’t understand, so I hope someone can help me with this.
I want to get some records from a database. In the database for each individual record, a link to a thumbnail, x coordinate and specified y coordinate is indicated.
An image (building map) must be created starting with a blank building map (plattegrond.jpg). Then you need to add several sketches that contain numbers (see image below) on a coordinated one specified in the database. When all thumbnails are added, they need to be saved as something like Project1.jpg or something else.
$emptymap = "plattegrond.jpg";
$newmap = "Project1.jpg";
header('Content-type: image/jpeg');
$im = @imagecreatefromjpeg('maps/'.$emptymap) or die("Cannot Initialize new GD image stream");
$im2 = @imagecreatefromjpeg('thumbnails/'.$linkToThumbnail);
imagecopy($im, $im2, $xcoord, $ycoord, 0, 0, imagesx($im2), imagesy($im2));
imagejpeg($im, 'maps/'.$newmap, 100);
imagedestroy($im);
imagedestroy($im2);
Thumbnails already exist and all small images are saved as 1.jpg, 2.jpg, 3.jpg, etc.
, :
, , ?
!
:
