picture on picture php

Solutions on MaxInterview for picture on picture php by the best coders in the world

showing results for - "picture on picture php"
Dany
20 Apr 2020
1$dest = imagecreatefrompng('mapCanvas.png');
2$src = imagecreatefromjpeg('si.jpg');
3imagealphablending($dest, false);
4imagesavealpha($dest, true);
5// Copy and merge
6imagecopymerge($dest, $src, 17, 13, 0, 0, 60, 100, 100);
7
8// Output and free from memory
9header('Content-Type: image/png');
10imagepng($dest);
11
12imagedestroy($dest);
13imagedestroy($src);
14