2 // imagettftext ( resource $image , float $size , float $angle , int $x , int $y , int $color , string $fontfile , string $text )
8 header('Content-type: image/jpeg');
10 // Create Image From Existing File -- going to have to make this a reqired size??? 2550x3300
11 $jpg_image = imagecreatefromjpeg('files/Green-Party-petition-1-page-001.jpg');
13 // Allocate A Color For The Text
14 $black = imagecolorallocate($jpg_image, 0, 0, 0);
16 // Set Path to Font File
17 $font_path = 'files/coolvetica rg.ttf';
18 $font_path_sig = 'files/Claston Script.ttf';
23 imagettftext($jpg_image, 50, 0, 220, 260, $black, $font_path, 'Baltimore');
26 imagettftext($jpg_image, 50, 0, 115, 365, $black, $font_path, 'X');
30 imagettftext($jpg_image, 50, 0, 350, 1070, $black, $font_path, 'Patrick Michael McGuire');
32 imagettftext($jpg_image, 75, 0, 400, 1200, $black, $font_path_sig, 'Patrick Michael McGuire');
34 imagettftext($jpg_image, 50, 0, 400, 1300, $black, $font_path, '501 Spring Ave Lutherville 21093');
36 imagettftext($jpg_image, 50, 0, 1800, 1070, $black, $font_path, '02 09 1980');
38 imagettftext($jpg_image, 50, 0, 1800, 1200, $black, $font_path, '05 07 2020');
42 // Send Image to Browser
43 imagejpeg($jpg_image);
46 imagedestroy($jpg_image);