Forum Moderators: coopster
<?php
header("Content-type: image/png");
$string = $_POST['text'];
$im = imagecreatefrompng("image.png");
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string) / 2);
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
?> My main Prob right now is aligning the text where I want it. In the end we are talking about several form variables right aligned over the image, sort of like and ID on the fly. Thanks