Images

Program that takes a transparent png image and installs text.

NOTE: Can't claim fame on this, it was pieced together from other examples...

Written in php:

t2:

#! /usr/bin/php5 -f

<?php

$im = imagecreatefrompng("fmc.png");

imageAlphaBlending($im,true);

imageSaveAlpha($im,true);

$text_color = imagecolorallocate($im,233,14,91);

imagecolortransparent($im,$text_color);

$host = gethostname();

$ipaddress = gethostbyname(gethostname());

imagestring($im,8,250,250,"Hostname: $host", $text_color);

imagestring($im,8,250,270,"IP Address: $ipaddress", $text_color);

imagepng($im,'image.png',9);

imagedestroy($im);

?>