global $girl_src_file;
global $girl_dst_file;
//$text_image=iconv("BIG5","UTF-8","20:20");
$image = imagecreatefromjpeg($girl_src_file) ;
$white = ImageColorAllocate($image, 255,255,255);
$black = ImageColorAllocate($image, 0,0,0);
$s_width = imagesx($image);
$s_height = imagesy($image);
// YϤjp
$thumb = imagecreatetruecolor($s_width, $s_height);
// ۰Y
imagecopyresized($thumb, $image, 0, 0, 0, 0, $s_width, $s_height, $s_width, $s_height);
// ]w Jr
//$textcolor = imagecolorallocate($thumb, 250, 250, 250);
// Jr
// imagestring($thumb, 5, 25, $ywpos, $text_image, $textcolor); ýX
// ؤo x y
//ImageTTFText($thumb, 20, 0, 100, 160, $white, "uming.ttf","______");
global $girl_left,$girl_top,$girl_text_rog,$girl_text_fontname,$girl_text_fontsize;
//$girl_left=105;
//$girl_top=165;
// *ImageTTFText($thumb, $girl_text_fontsize, $girl_text_rog, $girl_left, $girl_top, $white, $girl_text_fontname,date("H:i"));
//ImageTTFText($thumb, 120, -90, 50, 120, $white, "uming.ttf",$text_image);
//ImageTTFText($thumb, 120, -90, 50, 120, $white, "/home/love50d/public_html/test/uming.ttf",$text_image);
imagejpeg($thumb,$girl_dst_file,"100");
imagedestroy($thumb);
imagedestroy($image);
?>