Código PHP:
<?
$array = array('a','b','c','d','f','g','h','y','j','k','l','m','n','o','p','q','r','s','t','u','v',
'w','x','y','z','1','2','3','4','5','6','7','8','9','0');
$frase ="";
while($i< 6)
{
$z = rand(0,35);
$frase = $frase.$array[$z];
$i++;
}
//print $frase;
$image = imagecreate(200,50);
$blue = imagecolorallocate($image, 0, 170, 255);
$white = imagecolorallocate($image, 255, 255, 255);
imagestring($image, 1000, 75, 20, $frase, $white);
header("Content-type: image/png");
imagepng($image);
imagedestroy($image);
?>
una solución podria ser cada letra tiene una imagen asociada y luego las juntan todas??
un saludo