$local_path = $o_file->getPath(LOCAL_USER_FOLDER, $uid, $ymd); } # 2. nas TEMP 디렉토리 생성. //$nas_path = $o_file->getPath(NAS_USER_FOLDER, $uid, $ymd); $src_name = $unique . "." . EXT_JPG; $thum_name = $unique . "_thum.jpg"; $dest_name = $unique . "_w0." . EXT_JPG; # 4. url path 생성 $s_type = "image"; $url_path = $o_file->getUrlPath(CONTENTS_URL . "/usr", $uid, $ymd); $url_path .= $dest_name; ////////////////////////////////////////////////////////////////////////////////////////////////// $obj_data = $GLOBALS["HTTP_RAW_POST_DATA"]; if ($obj_data != "" and $obj_data != null) { $o_img = new ImageProcess(); $o_img->bitmapDataSave($obj_data, $local_path . $src_name); $ar_size = getImageSize($local_path . $src_name); $nFileSize = $o_file->getFileSpace($local_path . $src_name); $ret_str = sprintf("%d+%d+%d+%s+%s", $ar_size[0], $ar_size[1], $nFileSize, $orgName, $src_name); // remove by rainman // $ret_msg = ""; // 640x640 $img_width = 640; $img_height = 640; $o_img->Init_Resize($local_path . $src_name, $local_path . $dest_name, $img_width, $img_height); /* remove by rainman $ar_size = array('140x120', '220x180', '220x180', '40x30'); $ar_filename = array('_w1',