?php header( "Content-type: image / jpeg"); $im = imagecreate(400,30); $white = imagecolorallocate($im, 255,255,255); $black = imagecolorallocate($im, 0,0,0); / / Replace path by your own font path imagettftext($im, 20, 0, 10, 20, $black, "/ path / arial.ttf", "Testing...
?php header( "Content-type: image / gif"); $im = imagecreate(400,30); $black = imagecolorallocate($im, 0,0,0); $white = imagecolorallocate($im, 255,255,255); imagettftext($im, 20, 0, 10, 20, $white, "/ path / arial.ttf", "Test en cours...