96cc513483723c745215a0c1c07dac3d5f5d1ec8
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';
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, 300, 1100, $black, $font_path, 'Patrick Michael McGuire');
32 imagettftext($jpg_image, 50, 0, 300, 1200, $black, $font_path, '501 Spring Ave Lutherville 21093');
34 imagettftext($jpg_image, 50, 0, 2000, 1100, $black, $font_path, '02 09 1980');
36 imagettftext($jpg_image, 50, 0, 2000, 1300, $black, $font_path, '05 07 2020');
40 // Send Image to Browser
41 imagejpeg($jpg_image);
44 imagedestroy($jpg_image);