好的,我想要一个 400x400 的基本图像 (background.png)
和一个头像,200x200 并使用 imagestring 将其放在 imagecreatefrompng 中的 background.png 的顶部
有: http: //puu.sh/5KEAG.png
想要: http: //puu.sh/5KEF4.png
到目前为止的代码;
<?php
$image = ('background.png');
$im = imagecreatefrompng($image);
$white = imagecolorallocate($im, 255, 255, 255);
$width = imagesx($im);
$height = imagesy($im);
//where I want image avatar.png 200x200
Header('Content-type: image/png');
imagepng($im);
imagedestroy($im);
?>