I would like to know if there is any way to set the height, and the default width in php, I saw some forms, but I used an external class, I wonder if there is any way to use the GD library ...
$dest = imagecreatefromjpeg('imgs/bg.jpg');
$tamanho = imagesx($dest);
$width = 594;
$height = 387;
$src = imagecreatefrompng('imgs/textura.png');
imagealphablending($dest, false);
imagesavealpha($dest, true);
imagecopymerge($dest, $src, -30, -50, 0, 0, 700, 500, 50);
header('Content-Type: image/png');
imagepng($dest);
imagedestroy($dest);
imagedestroy($src);