[insert_php] include 'text.php'; include 'picfile.php'; $ppath = 'templates/jar-10-6-2018.jpg' ; $image = imagecreatefromjpeg($ppath); imagealphablending($image, false); imagesavealpha($image, true); $color = imagecolorallocate($image,255,255,255); // Create color $color2 = imagecolorallocate($image,198,127,173); // Create color imagealphablending($image, true); list($width, $height) = getimagesize($ppath); if (mb_strlen($tx1) < 4){ $fontSize=32; } elseif (mb_strlen($tx1) < 7){ $fontSize=32; } else { $fontSize = $width / mb_strlen($tx1) * 0.3;} imagettftext($image, $fontSize,0, 245, 245, $color2 , $font8, $tx1); imagettftext($image, $fontSize,0, 246, 247, $color , $font8, $tx1); imagepng($image, $temp_folder.$fn.'.jpg'); imagedestroy($image); echo ' '; include '1name.php'; include 'vip.php'; [/insert_php]