Kod
$img = imagecreatefrompng("outfits/1.png");
$color = imagecolorallocate($img, 255, 0, 0);
$font = "font.ttf";
imagettftext($img, 12, 0, 2, 15, $color, $font, urldecode($_GET['name']));
$txt = 'Level: '.$level;
imagettftext($img, 12, 0, 2, 30, $color, $font, $txt);
$file = 'players/'.$_GET['name'].'.jpg';
imagejpeg($img, $file, 100);
mysql_query("UPDATE accounts SET level=".$level." WHERE nick=".urldecode($_GET['name'])."");
echo '<img src="players/'.$_GET['name'].'.jpg"/>';
$color = imagecolorallocate($img, 255, 0, 0);
$font = "font.ttf";
imagettftext($img, 12, 0, 2, 15, $color, $font, urldecode($_GET['name']));
$txt = 'Level: '.$level;
imagettftext($img, 12, 0, 2, 30, $color, $font, $txt);
$file = 'players/'.$_GET['name'].'.jpg';
imagejpeg($img, $file, 100);
mysql_query("UPDATE accounts SET level=".$level." WHERE nick=".urldecode($_GET['name'])."");
echo '<img src="players/'.$_GET['name'].'.jpg"/>';
Wychodzi coś takiego:

Jak można poprawić ich jakość?