|
Posted by Aaron Todd on 03/02/05 19:51
Hello,
I've created a simple script that takes in image and draws some lines and
some text on top of it. I am having a problem with the text part of this.
When the string that I am drawing on the image contains and apostrophe ( ' )
there is always a backslash ( \ ) before it. It make sense that it is the
escape character, but I need to be able to show the apostrophe. Anyone have
any ideas about this?
<?php
$backdir = "/var/www/html/backgrounds/";
$im = ImageCreatefromJPEG($backdir.$_GET['background']);
$textcolor = imagecolorallocate($im, 255, 255, 255);
$font = "/var/www/html/fonts/arial.ttf";
imagepolygon($im, array(36, 24, 36, 456, 684, 456, 684, 24), 4,
$textcolor);
imagepolygon($im, array(72, 48, 72, 432, 648, 432, 648, 48), 4,
$textcolor);
maketext($im, 30, 0, 360, 240, $textcolor, $font, $_GET['toparea']);
Header("Content-type: image/jpeg");
Imagejpeg($im);
imagedestroy($im);
?>
Navigation:
[Reply to this message]
|