public static function make_thumbnail($raw_file_path, $thumbnail_file_path, $size_string) { $size_items = self::conv_size_str_to_array($size_string); return Util_file::resize($raw_file_path, $thumbnail_file_path, $size_items['width'], $size_items['height'], $size_items['resize_type']); }
private function make_image($original_file_path, $target_file_dir, $target_filename) { $target_file_path = $target_file_dir . $target_filename; Site_Upload::check_and_make_uploaded_dir($target_file_dir); Util_file::resize($original_file_path, $target_file_path, $this->width, $this->height, $this->resize_type); }