title images plugin difficulty
-
I’m trying to get the title images plugin (from the false hopes blog) to work and am having some trouble. Here’s the code I’ve got in my generate.php file:
<?php
//please edit the variables here as you see fit, as long as there isn’t a don’t edit this comment
$text = urldecode(urldecode($string)); //don’t edit this
$text = str_replace(�.png�, ��, $text); //don’t edit this either
$text = $text; //don’t edit this either either
$im = imagecreate(550, 38); //the image size. it goes (width, height)
$fontsize = 24; //this is the font size, edit it
$int_angle = 0;
$x_shift = 1; //shadow attribute
$y_shift = 28; //shadow attribute
$bgcolor = imagecolorallocate($im, 255, 255, 255); //background color
$shadow =imagecolorallocate($im, 00, 00, 00); //shadow color
$textcol = imagecolorallocate($im, 153, 153, 153); //text color
$font = “http://www.wump.info/public_html/wumpblog/biblet.ttf”; //absolute path to the font you would like to use
//you don’t need to edit anything below this point!
imagettftext($im, $fontsize, $int_angle, $x_shift, $y_shift, $shadow, $font, $text); //makes the image
imagettftext($im, $fontsize, $int_angle, $x_shift-1, $y_shift-1, $textcol, $font, $text); //makes the image
header(“Content-type: image/png”); // turns the image into a png file
imagepng($im);
imagedestroy($im);
?>
I’ve tried altering the url in a few different ways but nothing is calling up the image. Instead I’m just seeing the white box with an “x” in it that lets one know an attempt is being made to call an image. The font file I wanted to use, titled “biblet.ttf” is in the root directory.
The topic ‘title images plugin difficulty’ is closed to new replies.