Hey guys,
I have been trying to figure this out for the past couple of days, and I can't figure out why imagejpeg() ruins the text when using a darker color. You can see an example of the differences between the colors:

However, the font looks fine when you switch to gif or png as you can see here:

Here is my code for the text:
$size = '6';
$font = "images/avatar_maker/fonts/11.ttf";
$fontcolor = mysql_result($result,$i,"signature_fontcol");
$fontcolor2 = unserialize($fontcolor);
$textcolor = imagecolorallocate($im, $fontcolor2['r'], $fontcolor2['g'], $fontcolor2['b']);
$grey = imagecolorallocate($im, 0, 0, 0);
// Turn on alpha blending
imagealphablending($im, true);
imagettftext($im, $size, 0, $x-4, 181, -$textcolor, $font, $hits);
if($value2 == 'xbox,wii,ps3'){
imagettftext($im, $size, 0, 60, 25, -$textcolor, $font, $xbox);
imagettftext($im, $size, 0, $x4+12, 25, -$textcolor, $font, $wii);
imagettftext($im, $size, 0, $x2-48, 25, -$textcolor, $font, $psn);
imagettftext($im, $size2, 0, 35, 58, -$textcolor, $font, $gamerscore);
imagettftext($im, $size, 0, 34, 127, -$textcolor, $font, $bronzetrophies);
imagettftext($im, $size, 0, 80, 127, -$textcolor, $font, $silvertrophies);
imagettftext($im, $size, 0, 127, 127, -$textcolor, $font, $goldtrophies);
imagettftext($im, $size, 0, 173, 127, -$textcolor, $font, $platinumtrophies);
}
imageinterlace($im, true);
imagejpeg($im, $name.".jpg", 80);
imagedestroy($im);
Is there some reason imagejpeg outputs such terrible quality fonts in this script when the color is not a lighter color?
Thank you.