17 lines
543 B
PHP
17 lines
543 B
PHP
<?php
|
|
//require_once ('jpgraph\jpgraph.php');
|
|
//require_once ('jpgraph\jpgraph_pie.php');
|
|
//header("Content-type: image/gif");
|
|
//$im = imagecreate(200, 60);
|
|
//$grey = imagecolorallocate($im, 255, 255, 255);
|
|
//imagegif($im);
|
|
//imagedestroy($im);
|
|
|
|
header("content-type:image/jpeg");
|
|
$im = imagecreatefromjpeg("images/photo.jpg");
|
|
$textcolor = imagecolorallocate($im,56,73,136);
|
|
$fnt = "fonts/NotoSansSC-VariableFont_wght.ttf";
|
|
$motto = "长白山天池";
|
|
imagettftext($im,220,0,540,340,$textcolor,$fnt,$motto);
|
|
imagejpeg($im);
|
|
imagedestroy($im); |