
but I can't figure out why. I think it's the font. MAKE IT COMIC SANS.
( ,
Mon 11 Dec 2006, 9:13,
archived)

they drag off as black pngs which confuse me muchly
( ,
Mon 11 Dec 2006, 9:16,
archived)

if (isset($text)) {
$text = stripslashes($text);
$font = "times.ttf";
$size = imagettfbbox($font_size, $angle, $font, $text);
$image = imagecreatetruecolor(abs($size[5]), abs($size[6])+ ((abs($size[6]) / 100) * 33));
imagesavealpha($image, true);
imagealphablending($image, false);
$bgcol = imagecolorallocatealpha($image, 255, 255, 255, 127);
$textcol = imagecolorallocate($image, 0, 0, 0);
imagefill($image, 0, 0, $bgcol);
imagettftext($image, $font_size, 0, 0, abs($size[6]), $textcol, $font, $text);
header ("Content-type: image/png");
imagepng($image);
imagedestroy($image);
}
( ,
Mon 11 Dec 2006, 9:23,
archived)
$text = stripslashes($text);
$font = "times.ttf";
$size = imagettfbbox($font_size, $angle, $font, $text);
$image = imagecreatetruecolor(abs($size[5]), abs($size[6])+ ((abs($size[6]) / 100) * 33));
imagesavealpha($image, true);
imagealphablending($image, false);
$bgcol = imagecolorallocatealpha($image, 255, 255, 255, 127);
$textcol = imagecolorallocate($image, 0, 0, 0);
imagefill($image, 0, 0, $bgcol);
imagettftext($image, $font_size, 0, 0, abs($size[6]), $textcol, $font, $text);
header ("Content-type: image/png");
imagepng($image);
imagedestroy($image);
}