Jump to content

ultima_tum

New Members
  • Posts

    3
  • Joined

  • Last visited

ultima_tum's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. This makes a lot of sense now and does work! Really appreciate your help and also explaining it, so I know why and what! THANK YOU!! Ulf
  2. Thanks so much for your quick reply! Ideally i would like to try option a) and I have amended everything to reflect it, however still can't seem to be able to get it. i have updated the files on the server, so the link above is the same <?php //Set the Content Type header('Content-type: image/png'); // Create Image From Existing File $jpg_image = imagecreatefrompng('heartbeat.png'); // Allocate A Color For The Text $color = imagecolorallocate($jpg_image, 0, 0, 0); // Set Path to Font File $font_path = 'youmurderer.otf'; // Set Text to Be Printed On Image $text = $_GET['name']; // Print Text On Image Size, Angle, Position imagettftext($jpg_image, 140, 15, 370, 320, $color, $font_path, $text); // Send Image to Browser imagepng($jpg_image); // Clear Memory imagedestroy($jpg_image); ?>
  3. Hi! I am desperately trying to figure out an issue I have with imagecolorallocate. I am trying to personalize an image (http://31.216.48.48/~ulftiede/email_tests/own/image.php?name=Charlie) The color of the text always comes in as the light red, even though it is set as 0, 0, 0. i also have tried other colors in RGB <?php //Set the Content Type header('Content-type: image/gif'); // Create Image From Existing File $jpg_image = imagecreatefromgif('heartbeat.gif'); // Allocate A Color For The Text $color = imagecolorallocate($jpg_image, 0, 0, 0); // Set Path to Font File $font_path = 'youmurderer.otf'; // Set Text to Be Printed On Image $text = $_GET['name']; // Print Text On Image Size, Angle, Position imagettftext($jpg_image, 140, 15, 370, 320, $color, $font_path, $text); // Send Image to Browser imagegif($jpg_image); // Clear Memory imagedestroy($jpg_image); ?> can anyone think of a reason for it? thanks! image.php
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.