I'm placing a frame and inserting the background, but the image is on top. I would like to know if there is any way to send back, like what graphic editors do, I already tried to invert the code, first inserted the background and then the frame, but the image is only the size of the background.
HowshouldIstay?
Code
$imagem = imageCreateFromPng('imgs/quadro.png');
imageAlphaBlending($imagem, true);
imageSaveAlpha($imagem, true);
$fundo = imageCreateFromPng('imgs/bg.png');
imageAlphaBlending($fundo, true);
imageSaveAlpha($fundo, true);
imagecopy($imagem, $fundo, 60, 30, 0, 0, imagesx($fundo), imagesy($fundo) );
header('Content-type: image/png');
imagepng($imagem);