生成图像

$img = imagecreate(400,400);
imagecolorallocate($img,255,255,255);
imageellipse($img,200,200,50,50,imagecolorallocate($img,255,0,0));
header('Content-type:image/png'); // mime type 对应表
imagepng($img);

--------------------------------------------------

水印

$img = imagecreatefromjpeg('lydh.jpg');
imagestring($img,5,5,5,'mysterious',imagecolorallocate($img,255,255,0));
header('Content-type:image/png');
imagejpeg($img);

 

相关文章:

  • 2021-08-30
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2021-08-13
  • 2021-06-03
猜你喜欢
  • 2021-05-23
  • 2021-11-19
  • 2021-12-22
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案