添加此
$rotang = 20; // Rotation angle
到
<?php
$img = imagecreatefrompng("img.png");
$textcolor = imagecolorallocate($img,205,205,205);
$number1= " Your IP is $_SERVER[REMOTE_ADDR]";
$number2= " Today is " . date("Y/m/d") ;
imagestring($img,10,5,5,$number1,$textcolor);
imagestring($img,10,5,30,$number2,$textcolor);
header("Content-type: image/png");
imagepng($img);
imagedestroy($img);
?>
我想输出完全是php
示例输出图像 enter image description here