I have a background him here:
http://users.nggc.net/rank_back.jpg
and I want it to be the basis for this php script:
<?php
header("Content-type: image/jpeg");
$rank = $_GET["rank"];
$ladder = $_GET["ladder"];
$game = $_GET["game"];
$im = imagecreatefromjpeg("http://www.nggc.net/users/rank_back.jpg");
$textcolor = imagecolorallocate($im, 0, 0, 0);
imagestring($im, 2, 87, 6, $rank, $textcolor);
imagestring($im, 1, 25, 13, $ladder, $textcolor);
imagestring($im, 2, 25, 2, $game, $textcolor);
imagejpeg($im);
imagedestroy($im);
?>
it does work just fine, as you can see here:
http://users.nggc.net/online_rank.php?rank=1111&ladder=Clan&game=SOCOM%20II
the problem though is when PHP generates the image, the image becomes distorted and not as good as quality as the origanil background image: http://users.nggc.net/rank_back.jpg
Is there a way to get around this?