<?
$text = "DJ Mike";
$font = "Bookman-DemiItalic";
$pointsize = 100;
$depth = 4;
# make a transparent pallete
$pallete = new Imagick;
$pallete->newimage(450,105, "transparent");
# set pallet format to gif
$pallete->setimageformat("gif");
# make a draw object with settings
$draw = new imagickdraw();
$draw->setgravity(imagick::GRAVITY_CENTER);
$draw->setfont("$font");
$draw->setfontsize($pointsize);
# set font color white
$draw->setfillcolor("#ffffff");
# offset annotate
$pallete->annotateImage ( $draw,$depth ,-$depth-3, 0, $text );
$pallete->annotateImage ( $draw,-$depth ,-$depth-3, 0, $text );
# set font color black
$draw->setfillcolor("#000000");
# offset annotate
$pallete->annotateImage ( $draw,-$depth ,$depth-2, 0, $text );
$pallete->annotateImage ( $draw,$depth ,$depth-3, 0, $text );
# set font color blue
$draw->setfillcolor("#0000ff");
# center annotate on top of offset annotates
$pallete->annotateImage ( $draw,0 ,0, 0, $text );
# blur
$pallete->gaussianBlurImage( 2, 1.5 );
# output to browser
$pallete->setImageFormat("gif");
header( "Content-Type: image/gif" );
echo $pallete;
?>
<?
$text = "DJ Mike";
$font = "lokicola.ttf";
$fontsize = 100;
$fontcolor = "#aa0000";
$glow_radius = 15;
# Three glow colors
$glow = array( "#ff0000", "#ff8800", "#ffff00" );
# moves text down
$offset = 12;
# make a black pallete
$pallete = new Imagick;
$pallete->newimage(375,140, "#000000");
# set pallet format to gif
$pallete->setimageformat("gif");
# make a draw object with settings
$draw = new imagickdraw();
$draw->setgravity(imagick::GRAVITY_CENTER);
$draw->setfont("$font");
$draw->setfontsize($fontsize);
# Loop through glow colors
foreach( $glow as $var)
{
$draw->setfillcolor("$var");
$pallete->annotateImage ( $draw,0 ,$offset, 0, $text );
$pallete->annotateImage ( $draw,0 ,$offset, 0, $text );
$pallete->BlurImage( $glow_radius, $glow_radius );
}
# top layer
$draw->setfillcolor("$fontcolor");
# center annotate on top of offset annotates
$pallete->annotateImage ( $draw,0 ,$offset, 0, $text );
# output to browser
$pallete->setImageFormat("gif");
header( "Content-Type: image/gif" );
echo $pallete;
?>
^