$value) { imagettftext($image, 50, $key*10, 1020+(50*$key), 662+(50*$key), $textColor, $fontPath, $value); } // imagettftext($image, 50, -4, 1200, 650, $textColor, $fontPath, "HELLO"); //Set Browser Content Type header('Content-type: image/png'); /** Download image */ // header('Content-Description: File Transfer'); // header('Content-Type: application/octet-stream'); // header('Content-Disposition: attachment; filename=image.png'); // header('Content-Transfer-Encoding: binary'); // header('Connection: Keep-Alive'); // header('Expires: 0'); // header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); // header('Pragma: public'); //Send Image To Browser imagepng($image); //Clear Image From Memory imagedestroy($image);