count($mailit)) exit; $im = @imagecreate(1000,30) or die("Can't initialize new gd image stream"); $background_color = imagecolorallocate($im, 255,255,255); $text_color = imagecolorallocate($im, 0,0,0); $tmp_arr = imagettftext($im, $size, 0, 1, $size+1+$up_padding, $text_color, $font, $mailit[$m-1]."@cosplay.fi"); $x = $tmp_arr[2]+2; $y = $tmp_arr[3]+2; $im2 = @imagecreate($x,$y) or die("Can't initialize new gd image stream"); $background_color = imagecolorallocate($im2, 255,255,255); $text_color = imagecolorallocate($im2, 0,0,0); imagecopy($im2, $im, 0, 1, 0, 0, $x, $y); imagepng($im2); imagedestroy($im); imagedestroy($im2); ?>