Cytat(nospor @ 31.07.2017, 12:56:29 )

Ciezko zajrzec do manuala i doczytac co robia funkcje ktorych uzywasz? jedna robi dokladnie to co potrzebujesz
http://php.net/manual/en/function.imagepng.php $bg = imagecreatefrompng('1.png');
$champ = imagecreatefromjpeg('2.jpg');
imagealphablending($bg, false);
imagesavealpha($bg, true);
//bool imagecopymerge ( resource $dst_im , resource $src_im , int $dst_x , int $dst_y , int $src_x , int $src_y , int $src_w , int $src_h , int $pct )
imagecopymerge($bg, $champ, 4, 11, 0, 0, 70, 70, 100); //have to play with these numbers for it to work for you, etc.
$file = 'test.png'; // path to png image
$img = imagecreatefrompng($file); // open image
imagealphablending($img, true); // setting alpha blending on
imagesavealpha($img, true); // save alphablending setting (important)
Ale nie działa.