public function create_img_text(){
$dst_path = "./public/upload/kezi/2018/11-14/4dee0588f076e26f9266ce7e9cce4c8f.png";
$text = "";
$dst = imagecreatefromstring(file_get_contents($dst_path));
$font = "./public/font/simsun.ttc";
$black = imagecolorallocate($dst, 0x00, 0x00, 0x00);
imagefttext($dst, 18, -10, 30, 40, $black, $font, $text);
// $img = getimagesize($dst_path);
// var_dump($img);
// exit;
list($dst_w, $dst_h, $dst_type) = getimagesize($dst_path);
switch ($dst_type) {
case 1://GIF
header("Content-Type: image/gif");
imagegif($dst);
break;
case 2://JPG
header("Content-Type: image/jpeg");
imagejpeg($dst);
break;
case 3://PNG
header("Content-Type: image/png");
imagepng($dst);
break;
default:
break;
}
imagedestroy($dst);
exit;
}